Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Function 10 to ???
Message
De
30/04/2006 10:45:35
 
 
À
30/04/2006 09:48:58
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01117757
Message ID:
01117899
Vues:
16
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform