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 |
What type of automation frame work you are using?and why?
What is the syntax to use out of two characters. Pls anybody can give the answer.. Thanks in advance...
How does QTP identifies the object in the application?
Add parameters during time in each row in one column
Is it possible to call out to Java from QTP?
What is the exact difference bet function and action in QTP Anybody can explain it in detail..Thanks in advance..
Analyzing the checpoint results?
what is the default ordinal identifier.what are the send keys in qTP.
Step 3&4 are repeated until an the object in recognised uniquely.
What is an other way of "Wait" statement in QTP I dont want to use wait("Some number"). Can any one tell this please..........
How do you delete unwanted results in qtp?
What are the different kinds of test steps?