Correct. For example, let's say it was a textbox for numeric values and you didn't want the textbox to lost focus if the value entered was greater than 10. You would have the following code in the Valid:
IF This.Value > 10
WAIT WIND "Bad value...baaad value!" NOWAIT
RETURN .F.
ENDIF
>I am not sure I understand.
>
>My code is in the Valid Event. But are you saying to change my RETURN command to RETURN .F. instead of RETURN? And not use a SetFocus command at all?
>
>Please explain a bit more. Thanks.
>
>Steve Kramer
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05