Deal All,
Recently i face one interview question in one company.
str="test12@#3456"
In This i want to print like special character and numeric ,word in one script
please tell me how to write the code for this
Thanks
Balaji
Answer Posted / pushkar1206
a="pushkar12@dh"
b=len(a)
For i=1 to b
c=mid(a,i,1)
If isnumeric(c) Then
d=d&c
elseif asc(c)>64 and asc(c)<123 then
e=e&c
else
f=f&c
end if
Next
msgbox d
msgbox e
msgbox f
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Name the different types of recording modes?
What test cases can you automate using QTP?
Hai anyone please "Explain about Framework in QTP?"
you are recording on "WINDOW 1", say it has a link if you click on that, that leads you to "WINDOW 2". If you do any manipulations on "WINDOW 2" that are automatically updated in to "WINDOW 1". But "WINDOW 1" is currently invisible. But the updations in "WINDOW 1" must also be recorded as a script in QTP. The best Example is if you update your resume in JOB STREET portal it actually happens in other window, but the previous window is automatically updated. Now does QTP help you in this types of situations? Any body can answer this question. please..... Siva
What are the different recording modes and how do they work?
Where to use function or action?
What is throw object?
What is quicktest professional (qtp window?
what the difference between shared repository and per action repository?
Why script error occur in between recording in qtp?
What is the pros and cons between QTP and Rational Robot
How can you pass value one action to another action?
Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?
How can i click on any Excel sheet's "H" column with out writing coordinates Ex:Window("Book1").WinObject("Book1").Click 498,14 I dont want to give coordinates like 498,14 Can i open "H" column by writing like Ex:Window("Book1").WinObject("Book1").Click "H" or Ex:Window("Book1").WinObject("Book1").Click "H","1" or Ex:Window("Book1").WinObject("Book1").Click H,1 If i want to click on "Sheet3" of an excel sheet, Can i open like Ex:Window("Book1").WinObject("Book1").Click "Sheet3" Please help me any one
How do you know the location Id of an object if you know its index id?