Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CreateObject () and Word
Message
De
16/09/1997 08:40:25
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
CreateObject () and Word
Divers
Thread ID:
00050185
Message ID:
00050185
Vues:
59
My app creates a Word OLE object with :

goWord = CREATEOBJECT("word.basic.")

There are a few users who exit Word when they mean to just close a document window. Using the goWord object when Word is not running then causes an OLE error.

My solution for this is simply to repeat the line goWord = CREATEOBJECT("word.basic.") at the beginning of every method that uses calls to goWord. This works becuase Word does not launch another session each time CREATEOBJECT is called. My question is, is there any overhead here that I am not seeing? Any problem with this approach?

Thanks,
Ross
Répondre
Fil
Voir

Click here to load this message in the networking platform