>Thanks Ed...
>I knew it was a simple answer. I just couldn't find it in the help or several manuals. Why can't they just say that in the help files... I guess that would be too easy huh...
They do - look at the docs for the Valid event of the TextBox:
Valid Event
Occurs before a control loses the focus.
Syntax
PROCEDURE Control.Valid
[LPARAMETERS nIndex]
Parameters
nIndex
Uniquely identifies a control if it is in a control array.
Remarks
If the Valid event returns true (.T.), the control loses focus. If the Valid event returns false (.F.), the control does not lose focus.
The Valid event can also return a numeric value. Returning a numeric value has one of three effects:
If 0 is returned, the control does not lose focus.
If a positive value is returned, the value specifies the number of controls the focus advances. For example, if the Valid event returns 1, the next control gets the focus.
If a negative value is returned, the value specifies the number of controls the focus moves back. For example, if the Valid event returns –1, the previous control gets the focus.
RTFOLHD! (Read That "Fine" OnLine Help Documentation!)