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
Define Canvas view of UFT?
Explain how you can find length of array in qtp?
Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you
What are the types of object repositories? Which one is you using?
Where we can use the synchronization?
Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.
Explain the difference between check point and output value?
What is a quick test professional?
What is clean sweep?
Where can I find and view run-time data table?
Hi All, I need code for how to execute qtp scripts from excell sheet
Explain runtime dynamic settings?
Without using gui map editor we can recognize the application in winrunner ?
What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?
How many types of trigger events are there in qtp?