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 is localisation testing and globalisation testing? what is the difference between them?
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?
What are associated files in QTP?
after initiating one project for testing, when exacltly QTP tester role starts?
How can we open an Excel sheet through the script
I register user defined function in one test, I tried to call that function into other test. But that function not works in other test please give the direction for that.
How to watch currnet value of an object like OK buton or edit box with "Agent Name:" label. in watch expression tab?
write the code to reverse a string without using Strrev built in function.
How to connect QTP to Testdirector
Hi, I am trying to automate the web application for generating Reports.I am facing issue with IE while running the script. After 4 report IE crashes.I am using QTP 9.5 with IE version 7. Can anubody give me solution for this issue. Thanks in advance-Jyotsna
what happen in object repository(shared)if we call an existing action from an external action ? and what happen in object repository(peraction)if we call an existing action from an external action ?
Ex : some mail name with surname Email id's there that is string fetch the particular surname only how to get particular surname all emails