>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