Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

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

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

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

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

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

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

Answer / guest

strrev("star")

Is This Answer Correct ?    3 Yes 37 No

Post New Answer

More QTP Interview Questions

what is localisation testing and globalisation testing? what is the difference between them?

1 Answers   CDC Software,


I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?

0 Answers  


What are associated files in QTP?

2 Answers  


after initiating one project for testing, when exacltly QTP tester role starts?

0 Answers  


How can we open an Excel sheet through the script

8 Answers   eSymbiosis,


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.

1 Answers  


How to watch currnet value of an object like OK buton or edit box with "Agent Name:" label. in watch expression tab?

2 Answers   Cap Gemini,


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

14 Answers   ADP,


How to connect QTP to Testdirector

4 Answers   BirlaSoft, Polaris,


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

0 Answers  


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 ?

2 Answers  


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

1 Answers   Infosys,


Categories