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

when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks

1961


What does it mean when a check point is in red color? What do you do?

773


Can testing be done on the production system, or will a separate test system be required? How are browser caching, variations in browser option settings, dial-up connection variabilities, and real-world internet 'traffic congestion' problems to be accounted for in testing?

814


In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?

754


How to create a standard checkpoint ?

734


What is the architecture of your project? Can any one answer for this question plz........

1579


How does quicktest professional (qtp) identifies the object in the application?

759


iam have done mba(finance)in 2008. in 2008 one reputed consultancy came off campus interview our institution. i got job as "manual test engineer". now iam working as "manual testing engineer". now my problem is when iam going interview the interviewer asking like " ur mba gradute how can u get job in test engineer." this question i have faced every interview. iam explaining how iam getting job. but they are not trust me". pls tell me answer how i am giving relavent ans.. this is my mail id y.ramana84@gmail.com

1598


Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..

1492


Object repositories types, which and when to use?

814


can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?

1612


What are the 3 main stages involved in testing with qtp?

801


give me the code to save all messages of inbox of gmail into a folder and notepad

1812


What is different command used in command Prompt while using QTP?

1971


please post the interview questions for QA position in FACTSET

4167