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 / ramesh
Str="I Love india"
arr1=split(Str," ")
for i=0 to ubound(arr1)
arr=arr1(i)
lenarr=len(arr)
if lenarr=1 then
sing=sing&arr&" "
End if
if lenarr<> 1 then
for j=lenarr to 1 step-1
val=mid(arr,j,1)
rev=rev&val&" "
next
end if
rev=rev&" "
next
msgbox sing&rev
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you create regression test packs?
Limitations in QTP?
can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?
How Can I find the least value in a bunch of variables using qtp.. E.g.:- A = 210, B = 212, C = 60, D = 111 I don’t want to write bunch of lines for this…. Is there a way to get the result in one line…..
what is description object?
How to save your test using quicktest professional (qtp)?
Can we create user defined functions in qtp?
Can any give an example(if possible templates) how to test web application using QTP. thanks in advance
What is checkpoint in qtp?
requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how
what is impact analysis on regression testing?
i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api
what is the difference btn risks & Therads in the Test plan documentation?
if anyone has idea of the interview procedure in covansys, plz send me a mail?
How to data driven test for Win objects in QTP ?