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...

how can we reverse the string without using the revese of
String function in QTP?

Answer Posted / mahesh

Dim str,newstr,strrevers
str="QTP"
Set newreg=new regexp
newreg.global="True"
newreg.ignorecase="True"
newreg.pattern=".{1}"
Set newstr=newreg.execute(str)

Dim strarray()
For i=0 to newstr.count-1
ReDim preserve strarray(i)
strarray(i)=newstr.item(i)
Next
For i=0 to ubound(strarray)
strrevers=strarray(i)&strrevers
Next
print strrevers

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a xpath?

1098


Explain how to perform load-testing?

1075


Describe some problem that you had with automating testing tool.

2344


how to re-install QTP 11.0 trial version

2679


How do you decide which tool you have to use?

1057


I am new to Test Complete ,can any one suggest me the steps to create/Record and replay a test in Test complete 6....

2344


What are the different types of locks in mainframe?

946


What is the purpose of deselectall() method?

1042


Explain me what is testng and why is it better than junit?

1090


Tell us how can you create html test report from your test script?

1019


Highlight attributes of good framework?

1054


Tell me an example of the languages supported by webdriver?

1086


Is ui level testing possible?

1024


Tell me what is automation testing?

1025


Explain me how to check if an element is visible on the page?

985