Information générale
Catégorie:
Codage, syntaxe et commandes
Hi Rick,
Thanks for the great response. Couple of follow-up questions:
>Windows will still send events to VFP, but when suspended VFP doesn't process the message queue, so you'll get those "Not Responding" messages in the title bar. It's why it's best to Sleep(10) in a loop with DO EVENTS for a 100 count to sleep for 1000, so that it will still process messages and you won't see the Not Responding.
I am thinking on the above the one section should say:
"It's why it's best to Sleep(10) in a loop with DO EVENTS for a 100 count [than to do a single] sleep for 1000"
Did I get that right?
Secondly, even though there have been lots of responses here regarding DOEVENTS, I still have not got a good summary in mind on what this does. The online help says "Executes all pending Windows events" only. I read the description in kilo-fox and it seems to be used when setting .AutoYield to .F. to an embedded ActiveX control on a form (or that is one of their examples). Since I am running the COM Excel object asynchronously, what would issuing DOEVENTs in my code actually do?
Albert
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement