Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setfocus for a validation
Message
De
23/02/1999 15:28:18
 
 
À
23/02/1999 15:15:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00190625
Message ID:
00190631
Vues:
13
>Hi,
>
>i have a form in witch there's a textbox that receive a positive number and i want to put validation on it. if it's negative, don't leave the box. so what i do is in the lostfocus
>
> if thisform.number.value < 0
> messagebox(...)
> thisform.number.setfocus
> endif
>
>the messagebox appears but the setfocus don't go back to the textbox.
>
>can somebody tell me what is missing (or what am i missing)
>
>thanks for your time
>
>nad

You should add NODEFAULT right before Setfocus line.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform