can anybody tell vb script code for alphanumeric and special
character .which is used in qtp the name text field.
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 |
What are the rules to name variable in vbscript?
wat is com(common object model)object for mozilla firefox??? if any knows the exact answer....plz rply me
a;;b;c;;;d in this string output is abcd will come how can we do that in vbscript in QTP testing?
Which operator can be used to check if two numbers are equal or not in vbscript?
Explain the difference between POST and GET Method.
write a program to display configuration of a local system with the help of vb script.
which one is more secure vb script or java script ??????? or both are same ??????
sunday is sunday monday tuesday wendesday sunday thursday friday saturday sunday sunday how to count no of sunday in the text file from vb? Answer me asap
what is used of Property........End Property loop ? how to write the script for it?
write a vb script to create a folder?
In QTP how to insert a data base check point for web based application and simultaneous link to code in expert veiw. hw to retrieve a data(single coulumn from server) that matches with inserted value manually or exported from excel sheet.
Hi Friends, I am facing some issues with If,else condition,i.e. i am working on some web page for ex:gmail page.now if i want to check if username is incorrect or already exist,i want to display error message in my test report,for this i am using a simple code first,i.e. If Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "Shekhar.g"= true Then Msgbox ("Username Does not Exist!") Else msgbox ("Welcome !") End If But still i am getting a syntax error If Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "shekhar.g"= true Then Msgbox ("Username Does not Exist!") Else msgbox ("Welcome !") End If I don't feel any thing wrong in this syntax but i don't understand why it shows such error,i am confused what went wrong,please help me out & do the favor,thanks a lot....