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

Answers were Sorted based on User's Feedback



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

Answer / pillae

Str = "Reverse"
Cnt = Len(Str)
RStr = ""
For i = 1 to Cnt
RStr = Mid(Str,i,1) & RStr
Next
Msgbox RStr

Is This Answer Correct ?    50 Yes 4 No

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

Answer / ramana vanteru

str="ramana"
revstr=strreverse(str)
msgbox revstr

O/P will be: anamar

Is This Answer Correct ?    20 Yes 14 No

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

Answer / digi

IPString="buddy"
Dim StrTemp

StrLen=len(IPString)
For i=0 to len(IPString)-1
StrEachChr=mid(IPString,StrLen-i,1)
StrTemp=StrTemp & StrEachChr
Next

msgbox StrTemp

Is This Answer Correct ?    4 Yes 3 No

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

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

More Automation Testing AllOther Interview Questions

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

4 Answers   CapitalSoft, IBM,


Explain how to perform load-testing?

0 Answers  


In general, how do you see automation fitting into the overall process of testing?

0 Answers  


Which institute is better to learn Selinium

2 Answers  


What is a ‘test plan’? What is a ‘test case’?

0 Answers  






Generic function for selecting a Radio Button in a Dialog

0 Answers   Ness Technologies,


Hi friends, can anybody tell me what all the testing tools that persistant uses and what is the selection process for an fellow having 2yrs workexp on testing. Can anybody also help me out what is the minimum package that persistant is providing for 2yr workexp guy.

1 Answers  


What are the advantages of automation testing?

0 Answers  


what is meant by keyboard driven test?

3 Answers  


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

0 Answers   Toshiba,


Hi all, Do anyone have the experience in PDF Document Automation using OLE objects and methods? If so suggest the best websites for source. Thanks :-)

0 Answers  


Any one knows an Institute in Hyderabad where "Robot Test Automation Framework" is taught? Please email me: test.kvrm@gmail.com

0 Answers  


Categories