write the code to reverse a string without using Strrev
built in function.

Answer Posted / m.bindu kumar

'Code to reverse a string without using strrev using
functions

Function stringreverse(a)
strlen=len(a)
For i = strlen to 1 step -1
strrev=mid(a,i,1)
stn=stn+strrev
Next
msgbox stn
End function

Dim strrev,strlen, strname,stn
a=inputbox ("enter the string to reverse")
stringreverse(a)

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.

1785


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

833


Is it possible to use two instances of UFT on the same machine? If not why?

827


In qtp, explain what is keyword driven automation framework?

821


Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?

1775


what you mean by artifact,milestone...

1700


Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...

1733


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

1751


HI Everybody, I am using QTP 9.2, I have a problem and hope everybody help me solve it. Now I need to use mouse wheel event to zoom in or zoom out in web client, but QTP can't catch this event. I look forward helping of everybody. Thank you very much.

1864


How do you compare the structure of 2 tables in database and check whether they are similar using qtp.

1685


Explain the keyword driven framework for the window based application complete creation of library files,env file,test data,recovery file,excel file ,repository etc and as a test engineer how is ur approach

1813


what is the difference between modular framework & datadriven framework

1794


Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?

1890


Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?

793


Can any one tell me how to write a script for selecting open option in File menu of A word document.here you have to add objects to OR.try like that and give me the ans.i asked this question to so many but no one knows.if any one know the answer plz let me know

1629