Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why cant a SetFocus be used in Valid method ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00658596
Message ID:
00678535
Vues:
20
Hi Gerald,

PMFJI The valid event is normally used to do some sort of validation of the value of a control to prevent lost focus if a value that is entered if not valid. If the value is not valid (valid event returns .f.), it will force the user to enter a valid value before he can move on. You can however perform validation and pop up a message to the user from the valid event to let him know that the value is not valid and return .t. to allow it to move on to the next control. If you need to set focus to another control after the current control loses focus (whether valid or not) you can use the lost focus event and set focus to whatever control you want.

HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform