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
how do i know how to use tools
How you can write contexts to text file in qtp?
Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........
How do you do batch testing in wr and is it possible to do in qtp, if so explain?
How many types of recording modes in qtp? Describe each type with an example where we use them?
Is QTP supports Unix. If yes, then how the test automation is done?
How can you identify the browser and its information using the qtp script?
Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?
When using descriptive programming?
what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent
what are all the fileds present in object repository?
What are the views available in quicktest professional (qtp)?
Which environments does qtp support?
I need to obtain the parent of an object programatically, so if I have: winButton("aButton") I need to obtain the parent part: window("Window1").Dialog("Dialog1") so I can programatically create a string of the full name of the object to call it with an execute statement in QTP I would like to use something like: part[1] = "window(""Window1"")" part[2] = "dialog(""Dialog1"")" so I can do: exeLine = part[1]&"."&part[2]&"."&"winButton(""aButton"")" Execute exeLine Apart from keeping a record of the window/dialog hierarchy is there a parent or path function/ command Thanks Adrian
How will you check a web application for broken links using qtp?