Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make sure Word is gone
Message
De
21/11/2000 00:45:24
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00443950
Message ID:
00443964
Vues:
13
>>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.
>Ctrl+Alt+Del opens the task manager


Right. But I need to do the check programmatically

>>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.
>oWord.WindowState = 2 && Minimize
>oWord.displayalerts=.f.
>oWord.Quit
>release oWord


I actually never unHide the word app, so I don't think I need to minimize, correct?

Does the displayalerts completely eliminate the need to check that Word is still running? If not, I'd really like to learn how to check programmatically, if possible.

Thanks.
"The Iron Fish: The water is cold...but the fish don't mind"
...Jay Jenks, boyhood chum
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform