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

Why VB scripts are used in QTP and TSL in Winrunner, is there any advantage of using VB Scripts

2 Answers  


how to post xml data from QTP scripts to any application?

0 Answers  


whenever U using QTP,Test Director, Why we using separate Bug tracking tool?

0 Answers  


Can anybody help me for vb script in qtp? give me examples for practice plz.

0 Answers  


Is there a function to find the number of occurrences of sub strings within a string?

1 Answers  






Please explain me i am using QTP 9.5 ,i am creating re usable scripts,i have to pass data from one local sheet to another local sheet.for example i am creating emploee information, (data is in action 2 local sheet),In this data table emplyeee number will get,i have to pass employee number to another reusable script search data (action2 local data sheet)

2 Answers  


how can we group that these test cases only should be automated and in which order you execute that test cases?

2 Answers   BSL,


Hi any body can tell me the synchranization point syntax thanks in advance

6 Answers   AppLabs,


Once the Actions are splitted , is there any way to merge them

3 Answers  


hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?

0 Answers  


Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?

0 Answers   CTS,


please write a script to find the text in a application. Note: i dont know the location of that text where it is located. just like negative testing.

2 Answers   BSL,


Categories