Reverse a string keeping the words in the string as it is.
E.G. "Quick Test Professional"
O/P "Professional Test Quick"

Answers were Sorted based on User's Feedback



Reverse a string keeping the words in the string as it is. E.G. "Quick Test Professional"..

Answer / abbas

Var1="Quick Test Professional" 'Store String In One Variable

Arr=Split(Var1, " ") 'Split String By Space

For i=UBound(Arr) To 0 Step -1 'Run A Loop
Var2=Var2 &Arr(i) &Space(2)
Next

Msgbox Var2

Is This Answer Correct ?    12 Yes 0 No

Reverse a string keeping the words in the string as it is. E.G. "Quick Test Professional"..

Answer / manjunathareddy

Dim str
str=CStr(InputBox("Enter the String here"))
Arr=Split(str," ")
For i=UBound(Arr) to 0 Step - 1
var=var&Arr(i)&Space(2)
Next
Msgbox var

=====================OR======================
Dim str
str=Cstr(InputBox("Eneter the String here"))
a=Split(str," ")

Arr=Array(a)
Msgbox a(2)&" "&a(1)&" "&a(0)

Is This Answer Correct ?    4 Yes 0 No

Reverse a string keeping the words in the string as it is. E.G. "Quick Test Professional"..

Answer / guest

str="Quick Test Professional"
split_str=split (str," ")
For i = ubound(split_str) To 0 step-1
Print split_str(i)
Next

Is This Answer Correct ?    1 Yes 0 No

Reverse a string keeping the words in the string as it is. E.G. "Quick Test Professional"..

Answer / pravati

x="Quick Test Professional"
y=split(x," ")
msgbox ubound(y)
for i=ubound(y) to 0 step -1
msgbox y(i)
next

Is This Answer Correct ?    0 Yes 0 No

Reverse a string keeping the words in the string as it is. E.G. "Quick Test Professional"..

Answer / lak

dim str,strCnt ,revstr
str = InputBox("Enter your required String")

strCnt = len(str)

for i=1 to strCnt
revstr = mid(str,i,1)
Next

msgbox revstr

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More QTP Interview Questions

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

3 Answers  


How do you convert manual test cases to automated test cases?

0 Answers  


what is defination of system testing?

3 Answers   CodeArrow, Infosys, Omax,


What are they Advantages and Disadvantages in QTP 9.2?

1 Answers   Infotech,


what is On Error Resume Next ?

4 Answers   Accenture,






the build is develeped in Java. is possible to write scripting in vb using QTP ?

3 Answers  


How can i get the image text that changes dynamically? Here i have used "GetROProperty", but it's not working. I used like Ex:Browser("webmail").Page("inbox").image ("captchaimage).getroproperty("innertext/text/value")

0 Answers  


Generic function to search for the unique link in webtable and click on it

0 Answers  


How to find local host name using QTP?

6 Answers  


Hai Friends this is Rajesh , Is there any Site or Blog that Video tutorials of Qtp that can be free downloadable to Pc. Friends if any body know that site or blog please send me because i'm really in need for that because i cannot affordMoney in learning Course in Institutes due to Financial Problem . So please Forward that Site or Blog which provides Downloadable Video Tutorials in Free to PC , As My Friend is having PC thru that I'm planning to learn. So Kindly help me Friends if you are aware of that Site/Blog

2 Answers  


can anyone please tell me which is the best institute for learning QTP and Automation Testing tools in hyderabad with realtime examples and scenarios...I heard about many institutes in Ammerpet hyderabad i.e Suresh Reddy's Smart Solutions, Ashwin Palaparthi's Tech Teach,SUNNYSOFT, SITE institute, I-VINTAGE, siritechnologies and sriven institute..pls suggest me which to choose for learning QTP....Which institute has fasttrack option?

2 Answers  


w is datatable

5 Answers   CTS, IBM,


Categories