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
Have you used xml check point in your project?
How to find operating system information using the qtp script?
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?
What is the extension of the qtp local repository? If it is .mtr then what is .bdb extension stands for?
What does it mean when a check point is in red color? What do you do?
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?
what is meant by source control?
How do you open adobe acrobat file in QTP and do some testing on that file ?
What is the difference between a Function and Procedure in QTP?
Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance
Both static and dynamic arrays are handled by the vb script. Is it true?
Is it possible to change the property value at runtime? How it is possible?
can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com
What is Test Fusion Report in QTP?
How many tabs are available to view your test in a test pane and what are they?