Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to validate numeric data?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00677467
Message ID:
00677477
Views:
19
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform