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

Tell me the fundamental difference between xpath and css selector?

570


Why do you prefer selenium automation tool?

550


Which is the best place to learn Loadrunner performance testing in hyderabad ?

1082


Generic function for selecting a Radio Button in a Dialog

1975


Explain how to perform load-testing?

613






Any kind of test which you think should not be automated?

538


Do you know how to verify if the checkbox/radio is checked or not?

540


List some advantages and disadvantages of manual testing.

502


What are the differences between open source tools, vendor tools, and in-house tools?

547


did anybody take online training from Mind Q systems hyderabad? please share your experience. thanksĀ 

1755


Which protocol cam be used to makw jdbc connection woth loadrunner

572


Can any one give me the script for drag and drop or setselection functions ?like in a not pad i want to select 5 lines

1440


What criteria do you consider for automating a test?

546


What are the advantages of test automation?

580


How you report bug in to bugzilla

1854