write the code to reverse a string without using Strrev
built in function.

Answer Posted / fatekiller

code to reverse a string

first i wrote a function and then called that function to
reverse a string.


mystr=inputbox("enter the string")
ms=revstr(mystr)
print(ms)


Function revstr(mystr)
L=len(mystr)
revstrr=""
For i=0 to L-1
c=mid(mystr,L-i,1)
revstrr=revstrr&c

Next
revstr=revstrr
End Function

This program is written using the concept of MID function.

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Have you used xml check point in your project?

767


How to find operating system information using the qtp script?

833


Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?

868


What is the extension of the qtp local repository? If it is .mtr then what is .bdb extension stands for?

799


What does it mean when a check point is in red color? What do you do?

809


Plz Explain How to access Or Store Script from VSS? Explain Real time work (qtp) where you store folders and next to how to you access that folders and how you maintain folders in VSS ? What are the Menu's in VSS? Suppose in Manual, by using Checkin Checkout u can access documents. how you access in QTp REal time?

1814


what is meant by source control?

1923


How do you open adobe acrobat file in QTP and do some testing on that file ?

857


What is the difference between a Function and Procedure in QTP?

923


Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance

1703


Both static and dynamic arrays are handled by the vb script. Is it true?

807


Is it possible to change the property value at runtime? How it is possible?

792


can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com

1986


What is Test Fusion Report in QTP?

897


How many tabs are available to view your test in a test pane and what are they?

832