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


Please Help Members By Posting Answers For Below Questions

Output values? i want a practical example

1296


in a web page hoe to check the dynamic links that rechabging with out using regular expressions

1762


what is command for executing files?

1500


what is actually contain test report? can anybody post the test report

1456


What are the various types of Actions in UFT?

576






What are the data types in qtp?

654


Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?

591


Explain the types of object repositorys in qtp?

558


Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.

1507


Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...

1779


how to explain a claims and insurance project?

1734


Difference between action & Reusable action?

672


What is the use of Debug Viewer?

1474


How you can make an action as re-usable action?

635


Explain object spy in qtp.

571