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"
Answer Posted / mogal
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 |
Post New Answer View All Answers
Explain the use of action split in qtp?
Explain different type of event trigger option.
If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?
How can I import environment from a file on disk?
"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...
What do you mean by iteration?
Can U Explain about QTP tool from older version to latest version also its differences?
Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?
I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!
What are the things(properties, and other details) will be recorded while recording an object using normal recording?
Explain the Different types of QTP test assets and their extensions?
How to test background color and dynamic images during run time can you put the check point for moving objects?
What are the advantages of a Hybrid framework?
How do you know the location Id of an object if you know its index id?
Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..