Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Guideline for using foxobject in FOR EACH
Message
De
02/10/2019 16:10:59
 
 
À
02/10/2019 15:41:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01671042
Message ID:
01671346
Vues:
62
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
Fil
Voir

Click here to load this message in the networking platform