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 |
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
Explain the Keyword View ?
How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?
Explain how Does Run time data (Parameterization) is handled in QTP?
I open login gmail page after that QTP is not able to identify the object present in it then what u will do
Hi .. i want to write the script for the combo nox list . For example if any combo box having a multipul itme. So how can i retrive each item for each iteration ? help me out .
what is qtp automation frame work,what is the use of that frame work?
64 Answers Cap Gemini, IBM, iGate, TCS,
How to record objects of Windows taskbar
why can't you use excel directly in qtp. why we want to import excel data into Datatable.
what is the frame work your using in automation testing
Is it possible to change the values of analog recording?
How does qtp identify the object in the application?