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
From
05/01/2000 15:12:05
 
 
To
05/01/2000 15:03:40
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00313407
Message ID:
00313457
Views:
49
>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!)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform