I don't think "do my whizzy automation stuff" is a legal VFP command... <s> I 
just put that there as a placeholder to give you some ideas. 

TRY
       oWord = CREATEOBJECT("Outlook.Application")
       m.oWord.Visible=.t.
       messagebox([word is here!],48,[test])
 CATCH TO m.loError
        IF VARTYPE(m.oWord)<>[O]
                messagebox([no word here!],16,[test])
        ENDIF
FINALLY
ENDTRY


rk
-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Sytze de Boer
Sent: Wednesday, August 12, 2009 5:55 PM
To: [email protected]
Subject: Re: VFP9-Word/Excel licence

RK

Shows you how iggarant I am
Why doesn't this work

TRY
       oWord = CREATEOBJECT("Outlook.Application")
        do all my whizzy automation stuff
CATCH TO m.loError
        IF VARTYPE(oWord)<>[O]
                notify user that word couldn't be found
        ENDIF
FINALLY
ENDTRY

S



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/df1eef11e586a64fb54a97f22a8bd04406552e7...@ackbwddqh1.artfact.local
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to