write the code to reverse a string without using Strrev
built in function.
Answers were Sorted based on User's Feedback
Answer / fatekiller
code to reverse a string
first i wrote a function and then called that function to
reverse a string.
mystr=inputbox("enter the string")
ms=revstr(mystr)
print(ms)
Function revstr(mystr)
L=len(mystr)
revstrr=""
For i=0 to L-1
c=mid(mystr,L-i,1)
revstrr=revstrr&c
Next
revstr=revstrr
End Function
This program is written using the concept of MID function.
| Is This Answer Correct ? | 4 Yes | 5 No |
Answer / 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 |
Answer / ram
x="abcdefg"
v= len(x)
For i=1 to len(x)
newstr=mid(x, v,1)
a=a&newstr
v=v-1
Next
msgbox a
| Is This Answer Correct ? | 2 Yes | 5 No |
How to find RAM size by using QTP?
How many types of actions are there in quicktest professional (qtp)?
Are You using any frame work? What is that? Explain about that.
What is the difference between the keyword view and expert view?
What is difference between Recording time object identification and Run time (Execution) time.
What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this
How u prepare Test result summary in QTp?
Why do we use breakpoints in QTP?
how to create external data table?
How will u integrate oracel with QTP?
i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji
What scripting language is QTP of?