Friday, February 25, 2011

How to Reverse String in QTP

'Plese reverse the string.....Shahadat Khan

str="Shahadat Khan"
Dim l
l=Len(str)
For i=l to 1 step -1
strresult=mid (str,i,1) 'Returns a specified number of characters from a string.Ex.
'Dim MyVar
'MyVar = Mid("VB Script is fun!", 4, 6) ' MyVar contains "Script".
finalresult=finalresult&strresult

Next

msgbox finalresult

for Technical interviews:

http://no1tutorial.com/

learn step by step technologies:


http://no1tutorial.com/

No comments:

Post a Comment