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.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do i know how to use tools

2000


How you can write contexts to text file in qtp?

1099


Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........

2214


How do you do batch testing in wr and is it possible to do in qtp, if so explain?

974


How many types of recording modes in qtp? Describe each type with an example where we use them?

1047


Is QTP supports Unix. If yes, then how the test automation is done?

2188


How can you identify the browser and its information using the qtp script?

1001


Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?

1032


When using descriptive programming?

1092


what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent

1791


what are all the fileds present in object repository?

2044


What are the views available in quicktest professional (qtp)?

1056


Which environments does qtp support?

1103


I need to obtain the parent of an object programatically, so if I have: winButton("aButton") I need to obtain the parent part: window("Window1").Dialog("Dialog1") so I can programatically create a string of the full name of the object to call it with an execute statement in QTP I would like to use something like: part[1] = "window(""Window1"")" part[2] = "dialog(""Dialog1"")" so I can do: exeLine = part[1]&"."&part[2]&"."&"winButton(""aButton"")" Execute exeLine Apart from keeping a record of the window/dialog hierarchy is there a parent or path function/ command Thanks Adrian

2035


How will you check a web application for broken links using qtp?

1023