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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the diff b/w assistive and mandatary rules of object repository in QTP???

1604


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")

1418


How do client side image and server side image work?

1384


What is difference between run time object and test object?

552


How are actions and functions different in QTP?

654






What is object spy in quicktest professional (qtp)?

538


tell me QTP standards ?plz

1514


I want to know can we integrate visual source safe tool with QTP and QC for our version controlling process? WE know QTP and QC 10.0 version is having the version control inbuilt in it but I want to know the merits and demerits of the inbuilt version control tool and the visual source safe tool using QTP and QC.

2465


How do you capture tooltip using QTP?

628


What is the difference between the design-time and run-time data tables?

553


describe some problems that u had with automating testing tool?

1409


There are 10 rows in the datatable. How can we fetch 2 rows and then skip 3rd row. After that, pick 4th & 5th row and skip 6th row. Please share code

1209


Where to use Property Let, Property Get, Property Set in UFT

370


What is optional step in qtp? How you can add optional step in qtp?

529


hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)

1397