can anybody tell vb script code for alphanumeric and special
character .which is used in qtp the name text field.



can anybody tell vb script code for alphanumeric and special character .which is used in qtp the na..

Answer / pravati

x="pravati.001@gmail@.com"
For i = 1 To len(x)
y=mid(x,i,1)
If isnumeric(y) Then
z=z&y
elseif asc(y)>=97 and asc(y)<=122 then
a=a&y
End If
Next
msgbox z
msgbox a

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB Script Interview Questions

How are values assigned to the variables in the vbscript language?

0 Answers  


how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.

0 Answers  


. Program for sorting of numbers in vb script?

2 Answers   Talent Sprint,


how to add action through AOM in QTP

0 Answers  


* ** *** Please write a code to get output like above diagram? ple explain as it how the code works?

2 Answers  






i have developed the below QTP script to count the no of items available in the web list "Select a product" in www.bankrate.com and also want to print what are the items??? can any one help me to rectify the below script??? SystemUtil.Run "iexplore.exe","www.bankrate.com" a=Browser("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").page("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").Weblist("name:=select").GetTOProperty("items count") msgbox a Dim List() ReDim List(a-1) For i = 1 To a List(i-1)=Browser("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").page ("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").Weblist("name:=select").GetItem(i) Print List(i-1) Next

1 Answers  


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

8 Answers   Cap Gemini,


What is the use of the formatdatetime function in the vbscript language?

0 Answers  


How to open excel in vb script?

0 Answers  


What are the differences between Visual Basic, VBA and VBScript? When would it be appropriate to use one as opposed to another?

1 Answers   Infosys,


we executed QTP scripts in one browser(i.e IN)same scripts is working on another browsers or not (i.e mean netscap,m azol..like )

6 Answers   Accenture,


Explain about scrrun.dll?

0 Answers  


Categories