Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add en event to the queue instead of processing immediat
Message
From
07/10/2013 15:28:17
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
07/10/2013 11:46:34
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01584803
Message ID:
01584940
Views:
51
>>>I know there are other solutions to this problem, but there have been so many times when I want to have better control over event processing, so my question is how can I programmatically trigger an event to be processed in the event loop instead of immediately?
>>
>>Among simple tricks is to have an inactive timer which you will activate, have it do what you want after some milliseconds and deactivate again.
>
>Drew Speedie described something he called a "hand_grendade" which did just that.
>
>Here's our code (sorry about the dependencies, but they're easy enough to figure out)

I assume the timer's .timer() does an execscript(tcScript, this) or something like that.

Yes, that's pretty much the idea. We actually already have that timer on the form or container, wherever needed, except we usually don't need it to kill the form. In that case it would have to be in oApp, I'd guess.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform