Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if MCS Word object exists?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00579954
Message ID:
00579958
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform