Hi,

I'm writing a function where I need to pass a window object as a parameter 
using the descriptive programming.


WinObj = """regexpwndtitle:=Print"" , ""text:=Print"""
msgbox WinObj  'This prints "regexpwndtitle:=Print" , "text:=Print"

PrintReport(WinObj)


Function PrintReport(WinObj)

                
Dialog(WinObj).WinButton("regexpwndtitle:=&Yes","text:=&Yes").Click             
 
(this fails because the Dialog is not recognized.)
End Function


When I use the msgbox to view the string it prints correctly but if I do 
"Add Watch" and see what the string has,
it shows all the quotes """regexpwndtitle:=Print"" , ""text:=Print""".

How to resolve this issuse?  Thanks in advance

-- 
-- 
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 MercuryQTP@googlegroups.com
To unsubscribe from this group, send email to
mercuryqtp+unsubscr...@googlegroups.com
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 mercuryqtp+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to