Hi,

You can use regular expression .
Please find the following code to reverse a word,

a="shekhar"
set reg=new regexp
reg.pattern="[a-z A-Z]"
reg.global=true

set matchs=reg.execute(a)

for each match in matchs
    st=match&st
Next

msgbox"reverse string is   " & st

Please let me know if need clarification.

On Friday, August 28, 2009 7:50:35 PM UTC+5:30, [email protected] wrote:
>
> Hello Group,
>
> How can we Write code to reverse a string without using Vb functions. Is 
> there any possibility of doing it with QTP Inbuild functions.
>
>
> regards
>
> swetha
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to