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 |
I am not able to record yahoomail browser.its giving error like "The browser Application can't be launched .Posssibly the URL is wrong" So anyone can tell me what setting i have to do in qtp??
What is OUTPUT VALUE ? PLZ Explain With Example?
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
If object is not recognized by qtp but the object is standard object what is your approach?
How to launch application under test through VBscript without using systemutil.run or invokeapplication?
what is the extension of new local object repository?
suppose we recording a web based project so for that we are using internet explorer after that if we execute that script in netscape then script will execute or not and one more thing is to exeute the script in any browser what to do
Is qtp supports uni-code?
how to reverse a string with out using string or predefined function,ex:string is " i love india". the output should be like this "i evol aidni"
how qtp will recognise if application is run on many browsers
Out of 3 recording modes. 1.Standard 2.Analog 3.Low-level, which one is commonly used. As per my knowledge, Analog is used for Graphs , barcoding or DIgital signatures.
Did you face the problem, changing the properties of an object in Run Time?