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
On Thu, Aug 13, 2009 at 9:31 AM, Richard Kaye <[email protected]> wrote:
>
> Use TRY..CATCH. It's your best friend for dealing with these kinds of
> situations. I typically will start with something like this when trying any
> Office automation:
>
> TRY
> oWord = CREATEOBJECT("Word.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
>
> Depending on what you want to do, the code in the catch block could go in the
> finally block or even outside the TRY..CATCH completely.
>
> rk
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
> Behalf Of Sytze de Boer
> Sent: Wednesday, August 12, 2009 5:18 PM
> To: [email protected]
> Subject: Re: VFP9-Word/Excel licence
>
> Richard
> I've just tested this on a laptop that didn't have Word
> Any way to test for this ?
>
> S
>
>
>
[excessive quoting removed by server]
_______________________________________________
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/[email protected]
** 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.