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
What is a xpath?
Explain how to perform load-testing?
Describe some problem that you had with automating testing tool.
how to re-install QTP 11.0 trial version
How do you decide which tool you have to use?
I am new to Test Complete ,can any one suggest me the steps to create/Record and replay a test in Test complete 6....
What are the different types of locks in mainframe?
What is the purpose of deselectall() method?
Explain me what is testng and why is it better than junit?
Tell us how can you create html test report from your test script?
Highlight attributes of good framework?
Tell me an example of the languages supported by webdriver?
Is ui level testing possible?
Tell me what is automation testing?
Explain me how to check if an element is visible on the page?