Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CreateObject () and Word
Message
From
16/09/1997 08:40:25
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
CreateObject () and Word
Miscellaneous
Thread ID:
00050185
Message ID:
00050185
Views:
57
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
Reply
Map
View

Click here to load this message in the networking platform