>I have a textbox, whose value is initialized to 0, with the following in the VALID:
>
>
IF LASTKEY() = AscEsc
> RETURN
>ENDIF
>
>lOK = .T.
>** check for legal values; set nRecsNeeded
>DO CASE
> CASE This.Value <= 0
> WAIT WINDOW "Group size must be greater than zero"
> RETURN .F.
>
>
>...followed by other cases in the CASE statement.
>
Have you verified that the valid is not running, or is it possibly escaping with the mouse because no other key has been pressed since escape was last pressed (on another form)?
Erik Moore
Clientelligence