Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Guideline for using foxobject in FOR EACH
Message
From
02/10/2019 16:10:59
 
 
To
02/10/2019 15:41:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01671042
Message ID:
01671346
Views:
63
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform