Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Graceful exit on ESC from triggers and rules
Message
De
07/04/2005 15:36:27
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01002344
Message ID:
01002405
Vues:
23
I suppose you could create a local Object at the beginning of the routine and store state to it. In the destroy event of the object it can restore state.

Glenn
>>Would TRANSACTIONS be overkill ?
>
>I just came up to the idea, but do you think it would work?
>
>lcOldOnEscape = on('escape')
>on escape cleanup(m.lcOldOnEscape)
>==============
>
>Cleanup()
>...
>on escape &lcOldOnEscape
>keyboard '{esc}' && e.g. we would try to simulate esc
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform