Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LostFocus Event
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
00976863
Message ID:
00976869
Vues:
14
>Hi ALL,
>
>In the LostFocus event of a text box I am validating the user's input. If the validation fails how can I prevent user leaving the text box and force user to type valid entry ?
>
>This.SetFocus doesn't work .... the cursor goes to the next object.
>
>TIA,
>Daniel M.


Try:
** LostFoxus Event

IF FalseUserInput
   NODEFAULT
   this.SetFocus()
   RETURN .f.
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform