Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make sure Word is gone
Message
From
20/11/2000 22:47:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
How to make sure Word is gone
Miscellaneous
Thread ID:
00443950
Message ID:
00443950
Views:
41
I have a VFP program that uses Automation to run word.

I know how to quit word, but how can I verify that the quit really worked. I'm especially concerned about a situation where quitting causes word to post a dialog which is hung waiting for an answer (if the word app is hiding).

I know that I can use oword.quit(wdDoNotSaveChanges) to prevent the usual 'Do you want to save the changes' dialog, but I don't have warm fuzzies that this is the only thing that could cause word to pause quitting while waiting for an answer.

I have discovered that successfully quitting word does not release local object reference variables I use to access it, nor does it set them to NULL. So checking for these conditions (existence and/or nullity) aren't helpful.

Couldn't find anything in 'MS Office Automation with VFP' to help me.
"The Iron Fish: The water is cold...but the fish don't mind"
...Jay Jenks, boyhood chum
Next
Reply
Map
View

Click here to load this message in the networking platform