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
Explain object spy in qtp.
Explain the features and benefits of quick test pro(qtp)?
What are the Application Functions available in QTP?
How does qtp identify the object in the application?
what is the hierarchy to use properties in descriptive programming
Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?
If created one virtual object? Next time I changed the window position will it work?
What is test object?
When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.
Shall we add Local Repository to shared object repository,if yes,how we add
How to test the login page in different ways in automation testing and i need code?
Explain building blocks of the bpt framework ?
How smart identification works in qtp ?
Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar
How may types of defects identify application or your currently working application?pls give me answer..