Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if MCS Word object exists?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00579954
Message ID:
00579958
Views:
17
This message has been marked as the solution to the initial question of the thread.
>I want to use an existing Word object if already open, if not, open one. How to determine if an instance is already open?

AFAIK, you have to try and retrieve it.
local llerror
on error llerror = .T.
oMW=getobject(,"word.application")
if llerror
  oMW=createobject("word.application")
endif
HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform