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

Write a code to print numbers from 5 to 0?

0 Answers  


hi, How will write a regular expression of date in VB scripting.

1 Answers  


What is the output of a + b in vbscript if a = 5 and b = 10?

0 Answers  


in qtp we ve datatable look like excel ,if we want to extract data from excel which saved in my documet how can i get that in datatable using vb script

2 Answers  


What are the different types of operators and their order of precedence?

0 Answers  






write a text script to display * as below ********** **** **** *** *** ** ** * * * * ** ** *** *** **** **** **********

1 Answers  


Hi all..I have two values. a=20 ,b=30 I want to perform c= a+b and c= a*b using user define function.please anyone give the answer

1 Answers  


how to write vb script code for login gmail page by using notepad and how to run script in notepad

1 Answers  


What is the extension of the vbscript file?

0 Answers  


What are the 2 ways in which a variable can be declared in the vbscript language?

0 Answers  


Open Yahoo Login Page in that page Suppose i have 100 mails and i want to delete 10'th mail now give procedure & Coding For that Scenario

4 Answers   AppLabs, IBM,


what is visual basic?

2 Answers   Seion Infotech,


Categories