I have a string "Redfort is in Delhi" how do u write
vbscript for " Delhi in is Redfort"

Answers were Sorted based on User's Feedback



I have a string "Redfort is in Delhi" how do u write vbscript for " Delhi in is Red..

Answer / dhakshna

str= "Redfort is in Delhi"
arr= split(str," ")
For i =ubound(arr) to lbound(arr) step -1
res = res&" " &arr(i)
Next
msgbox res

Is This Answer Correct ?    7 Yes 0 No

I have a string "Redfort is in Delhi" how do u write vbscript for " Delhi in is Red..

Answer / litan

x="Redfort is in Delhi"
a=split(x," ")
msgbox a(3)&" "&a(2)&" "&a(1)&" "&a(0)

just check it out..
its workin properly

Is This Answer Correct ?    4 Yes 2 No

I have a string "Redfort is in Delhi" how do u write vbscript for " Delhi in is Red..

Answer / ashish wadhwa

A="Redfort is in Delhi"
b=Split(A, " ")
For i=0 to UBound(b)
result=result&" "&b(UBound(b)-i)
result=Trim(result)
Next

Is This Answer Correct ?    1 Yes 0 No

I have a string "Redfort is in Delhi" how do u write vbscript for " Delhi in is Red..

Answer / ashish wadhwa

A="Redfort is in Delhi"
b=Split(A, " ")
For i=0 to UBound(b)
result=result&" "&b(UBound(b)-i)
Next
result=Trim(result)

Try this it will work

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What is time parameter?

1 Answers  


please clarify the question ................. i know how to open the notepad file ? but i don't know how to enter the data into opened notepad ? Ex: set a=createobject("wscript.shell") a.run "Notepad.exe" please give the replay. my mail id is raju.ippali@gmial.com, 9823257761

6 Answers  


Describe function procedure in vbscript.

0 Answers  


how many wayes we do the parameterization?

1 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  






How can we export test results to an excel sheet in QTP??? Can any one provide sample coding for this?????

6 Answers   TCS,


how many scripts r there in QTP? pls any answer this question?

4 Answers  


Do you know how to connect database? Can you tell me the procedures?

0 Answers  


Explain qtp(quick test professional)?

0 Answers  


How do Parameterization and Data-Driving relate to each other in QTP?

0 Answers  


Q) Please any body can help me how we can create descriptive programming if the application is not ready i.e we don't have unique property of object ? note:build not ready means we can't use object spy in build to get unique property .

2 Answers  


What is ‘object spy’ and what is the function of object spy in qtp?

0 Answers  


Categories