Richard, I know I'm iggarant but I know that one (big grin) It seems to fail on WAIT WINDOW oWord.UserName
On Thu, Aug 13, 2009 at 10:26 AM, Richard Kaye <[email protected]> wrote: > 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 > > > [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.

