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
What is the use of ordinal identifier in qtp?
What is the qtp testing process?
What is recovery scenario manager? When you go for recovery scenario manager?
How to test the login page in different ways in automation testing and i need code?
In the website, the protocol has been changed http: to https what you will do? Tell me your approach?
how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page
1 Folders in VSS 2 In navigation script there are 100 script i want to run first 50 and 37th script also not needed to run how to do this 3 What is navigation script,Driver script, business script what we are loaded in this script 4 use of resource tab 5 Difference between verification and validation give real scenario example 6 file scripting object when to use it 7 what are the problems you are faced while testing web application 8 difference between expert view and keyword view 9 difference between QTP 8.2 and QTP 9.2 navigation frame work please answer these questions from real time working people as early as possible
Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..
How to record a qtp script ?
unique properties of button,edit box, radio button,check box?
I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.
how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance
Can we Test Welcome Screens and Process Images with QTP
How many ways we can parameterize data in quicktest professional?