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


Please Help Members By Posting Answers For Below Questions

How to use the object spy in quicktest professional 8.0 version?

550


Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji

2272


If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?

597


How can i check items sorted or not in a weblist ? Give me the script for this...

1588


whow much strong on VB and C?

1494






How to explain a banking project in interview as a test engineer???

2608


Explain the difference between call to action and copy action?

531


how u will evaluate the tool for test automation?

1376


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

1528


What is the latest version of qtp?

595


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...

1328


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.

1383


how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

1916


Is QTP supports Unix. If yes, then how the test automation is done?

1738


How to suppress warnings from the test results page?

612