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



Deal All, Recently i face one interview question in one company. str="test12@#3456" ..

Answer / 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

More QTP Interview Questions

Suppose u run ur script today and it is working fine ,nobody has changed the setting and all.u r the owner for the script. But when tomorrow I ran the same script again it got failed and It didn't able to identify one object. Can you tell me what would be the reason for this

4 Answers   L&T,


How can i open 5 multiple browser at once through QTP VB script

4 Answers  


How to handle the errors without using recovery scenery?

3 Answers  


can anyone please send me qtp framework material please its urgent

1 Answers  


In qtp, how you can use xpath to identify objects?

0 Answers  






What is a quick test professional?

0 Answers  


Please let know the scripts for counting number of repeated letters in the word. Note repeated letter should not be count agian. Ex: If "Hello" is my word... l is coming twice.. it should count once and print... secong 'l' should not count again..

1 Answers  


How software tester can use constants and variables in scripts?

0 Answers  


How do you capture tooltip using QTP?

0 Answers  


In QTP, Give the difference of Global sheet and Local sheet in datatable?

3 Answers  


i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?

0 Answers  


How can you write the scripts that operate on different objects depending on run-time information?

0 Answers  


Categories