Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LostFocus Event
Message
De
13/01/2005 13:49:23
Jim Winter
Jim Winter Consulting
Hinesburg, Vermont, États-Unis
 
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:
00976868
Vues:
11
>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.

Daniel,

Move the validation code to the valid event. If the valid event returns .F., the user will be returned to the text box.

HTH,
Jim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform