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

Explain what is the difference between findelement () and findelements ()?

544


Explain what is a relative xpath?

550


explain add in manager and virtual object wizard in winrunner

1654


How could you explain the main difference between webdriver and rc?

516


When do you prefer manual testing over automation testing?

559






What is self-referencing constraint in mainframe development?

502


how can i count the no of edit field in a page and fill the multiple edit field

2056


Where will you maintain information like url, login, password?

1446


Types of F/w in Automation

835


Can we do automation testing without a framework? If yes, then why do we need a framework?

697


I want to learn the data base testing, how can I start my psactice? I already reading the books of basic for data base? If any other books that make my study simple please suggest.

1562


Is there any freeware tool for automation testing of mobile applications for BlackBerry and iPhone platforms ?

2505


How will you automate basic “login” functionality test cases for an application?

535


What is open source tool and give example?

560


What is javascriptexecutor and in which cases javascriptexecutor will help in selenium automation?

568