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 use the object spy in quicktest professional 8.0 version?
Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji
If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?
How can i check items sorted or not in a weblist ? Give me the script for this...
whow much strong on VB and C?
How to explain a banking project in interview as a test engineer???
Explain the difference between call to action and copy action?
how u will evaluate the tool for test automation?
I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all
What is the latest version of qtp?
Do you know SQL? I know SQL but i don't have any experience...that's it..No more questions ...simply he said " you can leave for the day" ...guys prepare SQL Quires before attending interview in bank of america...
Hi I know two types of testing processes. 1. Reaquirments stage,test design,code review's, Design review's, Test Plan, Test Cases design, test execution, Defect Reporting and tracking, UAT, Signoff. 2.Test Initiation , Test Plan, Test Design, Execution,Bug tracking, UAT, Sign off.
how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?
Is QTP supports Unix. If yes, then how the test automation is done?
How to suppress warnings from the test results page?