Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to validate numeric data?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00677467
Message ID:
00677477
Vues:
20
>I need to validate numeric data in a textbox. The entry needs to be 0,1,2,3,4
>and nothing else. I'm having a hard time since no entry and zero appear to be the same thing but I do want the zero entered instead of leaving it blank.
>
>I've tried inlist(0,1,2,3,4) but blank is as good as zero to this function.
>
>Ideas?
>
>(vfp7)

Another idea...Try
RETURN NOT ISBLANK(This.Value) AND BETWEEN(VAL(This.Value), 0, 4)
in the text box's Valid event.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform