Hi,
You can use this
Str = "CAC (E) WorkFlow"
NeWStr = Replace(Replace(str,"(","\("),")","\)")
Msgbox NeWStr
Regards,
Saandeep
On Thu, Jun 6, 2013 at 9:45 PM, gokul krishna <[email protected]>wrote:
> str="CAC (E) WorkFlow"
>
> For i=1 To Len(str)
>
> x=Mid(str,i,1)
>
> ' MsgBox x
> xstr=Asc(x)
> MsgBox "Ascii value"&xstr
> If (xstr=40) or (xstr=41) Then
> pos=InStr(1,str,xstr)
> ' MsgBox "position"&pos
> If pos = 0 Then
> str=Replace (str,x,"\"&x)
> MsgBox "updated string"&str
> i=i+1
> End If
>
> End If
> Next
>
> Regards,
> Gokul
>
>
> On Thu, Jun 6, 2013 at 6:31 PM, Jyothi <[email protected]> wrote:
>
>> Hi Experts,
>> Can you any one please help me to get the value "CAC \(E\) WorkFlow
>> " from the value "CAC (E) WorkFlow".
>> how to write pogram to append "\" for the value "CAC (E) WorkFlow"
>>
>> *Out put value should be *"CAC \(E\) WorkFlow"
>>
>>
>> --
>> Thanks & Regards,
>> Jyothi K
>>
>> --
>> --
>> 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/groups/opt_out.
>>
>>
>>
>
>
>
> --
> Thanks,
> Gokul Krishna.
>
> --
> --
> 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/groups/opt_out.
>
>
>
--
--
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/groups/opt_out.