Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'on key' events seem to have priority over valid method.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00582463
Message ID:
00582768
Vues:
27
Hi David.

>> This has worked fine, but I have recently discovered some really strange behavior that is new to me (but apparently existing all along). It seems that if we are on an object that has a valid (lostfocus, etc.) method, and press the Page Up key, then the object methods are not executed until the page is loaded the next time. <<

This is eactly what I would expect to happen. If a program is executing when you press the key or click the mouse button, Visual FoxPro executes the current program line and then executes the ON KEY LABEL command.

You will be much better off setting the form's KeyPreview property to true and using method code called from the form's KeyPress event to handle this.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform