Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Function 10 to ???
Message
From
30/04/2006 10:45:35
 
 
To
30/04/2006 09:48:58
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01117757
Message ID:
01117899
Views:
17
Hello,

"ON KEY LABEL is a dangerous practice. If the user hits F10 twice, it will start the process for the first hit, get part way through, start the process again for the second hit, finish the second and then finish the first. You may want to add a flag that suppresses subsequent starts."

setting _VFP.AutoYield to .F. (to surpress that keypresses and other user events are handled between code lines) at the first line in such a routine
and back to .T. in the last line is a good way to solve this.


Regards
Christian
Previous
Reply
Map
View

Click here to load this message in the networking platform