Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Program Error - Cannot call SetFocus from within ...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00120667
Message ID:
00130421
Vues:
58
Oleg,

Your code would surpress the error but would not move focus where you want it to go because after the Valid returns .T. the LostFocus will set focus to the next control in the tab order.

The best solution is to realize that the purpose of the Valid event is to determine whether or not you will allow focus to leave the control and that is it. Deciding where to go only comes into play aftert you have decided to allow the user to leave. The LostFocus is the event that fires when the control will actually lose focus and that is where you should setfocus.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform