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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate javascript and vbscript?

567


How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz

2385


Explain the functionality of vbscript?

536


Mention what is the main difference between function and sub-procedure?

543


what is the object hyrarchy in QTP for a web based application

1880






How to open a file. What is the perpose of true and false mode there?

604


Explain the extension .hta?

538


What is the scope of a constant declared using public?

552


When to use function procedures and what are its characteristics?

547


Explain the .wsf files?

530


Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.

1584


How to pass argument by reference to a function in vbscript?

535


How can the spaces from the string be removed?

589


How to write functions and sub in vb script?

620


How will you get the largest subscript of an array in vbscript?

601