In the controls Valid event:
THIS.Value = MIN(THIS.Value, 20)
>I am still new to VFP. I am using VFP 3.0.
>My question is that when using a textbox and I
>want to set the value that is entered to be equal to
>or less than 20. I know that I could setup a mesagebox
>on the form to tell the user that the value that they
>entered is too high but I don't want to use that if I don't
>have to. I know that the input mask can set it to only allow two digits to be entered. Any ideas?
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.