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
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 |
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 |
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 |
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 |
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 |
How to set the function parameters as optional. Pls anybody can give the answer.. Thanks in advance...
How we can add actions in the test using QTP?
What are the enhancements u did after recording ur script?
How to change the run-time value of a property for an object in QTP?
What are SetToProperty, SetRoProperty, GetToProperty scripting?
i have .xls,.txt,.doc files are there (together). i want find only .xls file among them? how can we write function?
when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks
Hello Everyone, I have a problem. QTP is capturing no action on a particular page in the application that I am trying to automate. But on the same side its working fine on other pages of the same application. Can someone please help me understand the reason behind this inconsistency.
I used Child objects to get the count of the no of weblist present in the page.now i need to select the item in the weblist..Please send me full code
Hi friends, In a particular test how many maximum call to new actions we can call?It reusable or normal actions what ever it is .
How u send bugs to dev'lpment team all at once or one by one or waht is the process?
Hi Friends, I have an application that is having some options to choose. While doing business transaction I need to select one option among from available options. But here the thing is, we won't get one option which we've chosen already and the available options will get automatically from the system with time basis, moreover each and every option having with various label names respective to that option. So obviously if I run my recorded script will automatically gets fail, even though it got pass at first time. Could anyone please give me appropriate solution for this. I would be greatly obliged with you if you give the solution as soon as possible.