Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I get back to a previous text box if error occurr
Message
 
To
05/01/2000 15:05:37
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00313407
Message ID:
00313628
Views:
66
>Thanks Ken...
>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...

Mike,

From the VFP help file for Valid Event;

"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."
Previous
Reply
Map
View

Click here to load this message in the networking platform