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 / sreenu

Dim str,arr
str = "i love india"

m=split(str," ")

For k=lbound(m) to ubound(m)
mystr=m(k)

strlen = len(mystr)
ReDim arr(strlen)
For i = strlen to 1 step -1
arr(i) = mid(mystr,i,1)

x = x & arr(i)

Next
x=x&" "
Next
msgbox x

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?

558


What is quick test pro?

582


How the exception handling can be done using quicktest professional?

534


How do we analyze the checkpoint results?

569


When Recovery scenario actually starts while testing the application?

1532






How to change the priorities of the recovery scenario properties?

587


What is the difference between keyword view and expert view?

597


What are metrics and matrix?

1359


Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly

1246


what is error and fault in terms of software quality?

1453


I had installed QTP 9.2. It is working fine but whenever I open QTP, it is trying to reinstall the below-mentioned files again and again "QTP92PS82UPGRADE.exe", "recogn.dll". If anybody has these files, please provide those files in this site or you can send that files to my mail id also (lravi4u@yahoo.com). If you don't know where the files will be in the QTP, search in the QTP software CD or path of QTP program installed (C:\Program Files\Mercury Interactive\QuickTest Professional)

1444


How to create a standard checkpoint ?

550


Can testing be done on the production system, or will a separate test system be required? How are browser caching, variations in browser option settings, dial-up connection variabilities, and real-world internet 'traffic congestion' problems to be accounted for in testing?

611


Explain step generator in qtp?

637


What is Curd testing?

1873