how to write function to validate the number of characters
entering into the text box?

Answers were Sorted based on User's Feedback



how to write function to validate the number of characters entering into the text box?..

Answer / kumar

use len() function to find the number of chars

Is This Answer Correct ?    1 Yes 0 No

how to write function to validate the number of characters entering into the text box?..

Answer / bfakruddin

dialog("text:=Login").winedit("attached text:=Agent Name:").set "Baba"

text=dialog("text:=Login").winedit("attached text:=Agent Name:").getroproperty("text")

Function length(text,le)
le=len(text)
End Function

Call length(text,le)
msgbox le

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More VB Script Interview Questions

How will you get a random number between 0 and 1 in vbscript?

0 Answers  


Which operator can be used to do an xor operation in vbscript?

0 Answers  


What is sql loader? Explain the files used by sql loader to load file?

0 Answers  


Explain what is loose binding? Why is it not a good practice to use it?

0 Answers  


Explain the arrays in vb script?

0 Answers  






Which in-built function is used to format the number in the vbscript language?

0 Answers  


Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?

0 Answers  


What is Querystring collection?

0 Answers  


Explain about .wsf files?

0 Answers  


Can automation testing find ssame no. of bugs what we can find by manual testing?

0 Answers  


Input = 124 output should be 124421 Please do not use any string functions/variables

8 Answers   Cap Gemini,


Could Anybody tell me VBScript for Check if a given number is Prime number-Don't use any Built- in Functions Boolean/int is Prime(int number).. Thanks in advance.

12 Answers   Amazon, Pyroferus,


Categories