write the code to reverse a string without using Strrev
built in function.
Answer Posted / jay prakash
Try this:
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'''''''''''''''Script Starts Here''''''''''''''''''''''''''
Dim i
Dim iStrLen
Dim strOut
Dim strTmp
Dim strMyString
strString=InputBox("Please enter the string to be
reversed:")
iStrLen = Len(strString)
For i = 0 To Len(strString) - 1
strOut = Mid(strString, iStrLen - i, 1)
strTmp = strTmp & strOut
Next
strMyString = strTmp
msgbox strMyString
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'''''''''''''''Script Ends Here''''''''''''''''''''''''''
Please let me know if it helps
| Is This Answer Correct ? | 32 Yes | 5 No |
Post New Answer View All Answers
How to create runtime property for an object?
can u please explain what is the exact difference between qtp8.2 and 9.0
How is UFT 11.5 version different from UFT 12.0?
Hai anyone please "Explain about Framework in QTP?"
What are the different types of checkpoints?
Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??
How many add-ins comes by default with quicktest professional?
What is a quick test professional?
What is the difference between a Function and Procedure in QTP?
1.explain end to end process of qc,2.how many tabs are in qc9.0,qc10.0 3.what is review, how many reviews are following in aproject 4.how will you get the requirements 5.why do we choose testing 6.how to export tc's and requirements to qc through add-ins
distinguish between old version and new version QTP features.
Is it possible to call from one action to another action in qtp?
What are some test assets and related extensions of qtp?
how many maximum number of virtual users we can create?
what testplan contents and what test strategy contents,what is the diff b/w them