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
_______________________________________________
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.