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"
Answers were Sorted based on User's Feedback
str=" i love india"
StrSpl = Split(str," ")
For j = 0 to Ubound(StrSpl)
result1 = result1 & " " & ReverseStr1(StrSpl(j))
Next
msgbox result1
Function ReverseStr1(Str1)
For i = 1 to Len(Str1)
ReverseStr1 = mid(Str1,i,1) & ReverseStr1
Next
End Function
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / lak
str=" i love india"
Set regExpObj=new RegExp
regExpObj.pattern="[a-z A-Z]"
regExpObj.global=true
Set matches=regExpObj.execute(str)
For each letter in matches
result=letter.value&result
Next
msgbox result
| Is This Answer Correct ? | 0 Yes | 1 No |
I have to do testing for XML file using QTP. 1. I was given a sample XML, I had to edit that with my actual data and had to make a new XML-- this part is completed, I did that. 2. Now I have to copy the exact contents of that XML file and have to paste it in a web application as a request message for web appliaction processing, using QTP. So I am unable to copy and paste it in web application, please help me out.
can u give one scenario for for PopWindow Exception & write Code for that?
Can anybody help me for vb script in qtp? give me examples for practice plz.
Hi, Can any one explain what is mean by Driver Script? is it AOM?
What are the different scripting languages you could use when working with QTP ?
How to Import data from a ".xls" file to Data table during Runtime.
Explain the concept of how quicktest professional identifies object?
How you calling actions in qtp?
what is the main process in QTP?
will QTP 9.2 run successfully on Linux(gui) operating system
what is the extension of action script template?
If enter into interviewer room? how u introduce with him. with shakehand or waht?