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 are values assigned to the variables in the vbscript language?

0 Answers  


How will you release the memory acquired by an array variable in vbscript?

0 Answers  


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

1 Answers  


Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).

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  






Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.

0 Answers  


can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.

0 Answers   Synechron,


How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

0 Answers   College School Exams Tests,


how to add the shared repository file to the script file while running the script manuall

2 Answers  


What purpose does ‘on error resume next’ serves?

0 Answers  


How to get 120 using 5 zeroes, you can use any operator(+, *, /...) in qtp.

2 Answers   Cognizant,


wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

0 Answers  


Categories