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

what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?

2728


how to test load test and block box testing an a web based application pls give ans briefly

1345


how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance

1420


How to indentify MS-Word objects like Menubar, Toolbar, table/columns/rows/cells etc within Word document, using QTP?

1798


In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail

1495






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.

1617


Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution

1656


What are the different ways to invoke an application using QTP?

639


HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?

1708


hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company

1418


Did the scripts need lot of maintenance? If yes, why?

3285


How to create Reusable and Multiple Actions?

1698


How many types of status are there?

580


In qtp, explain what is qrs file?

577


any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in

3429