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


Please Help Members By Posting Answers For Below Questions

How do you create regression test packs?

605


Limitations in QTP?

1735


can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?

1678


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…..

1607


what is description object?

1580






How to save your test using quicktest professional (qtp)?

583


Can we create user defined functions in qtp?

548


Can any give an example(if possible templates) how to test web application using QTP. thanks in advance

1542


What is checkpoint in qtp?

543


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

1468


what is impact analysis on regression testing?

2034


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

1486


what is the difference btn risks & Therads in the Test plan documentation?

1581


if anyone has idea of the interview procedure in covansys, plz send me a mail?

1519


How to data driven test for Win objects in QTP ?

1466