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

Explain different checkpoints in qtp.

716


Explain object spy in qtp.

579


How is recording done when a application is over lapping the QTP application it gives a message object not recorded

1565


How to integrate the qualitycenter with qtp

1768


How to call a test from another test?

678






What is the parameterization?

573


how to create flat file datasubmission in qtp

1896


What do you mean by checkpoints in qtp?

554


how to test Web application using QTP software

1557


what is defenetion of kiran can u tell me plz CVS, SVN

1565


Who uses qtp tool?

570


What is the short cut keys for the following?

637


What are the differences between quicktest professional (qtp) and winrunner?

564


What is Test Fusion Report in QTP?

614


I hav installed QTP8.2, im working on webapplication, while running the script giving error msg like "QTPro.exe generated errors and will be closed by windows. You will restart the program. An error log is being created". Pls anybody what is the problem, what i have to do for this? Thanks...

1712