How to Change Data in a GET Field from a VALID ProcedureID: Q101590 2.00 2.5x 2.6x | 2.5x 2.6x 3.00 kbprg
The information in this article applies to:
When a GET field's VALID procedure returns FALSE, the original value contained by the field (the value before the user entered it) will be restored, and the user will get an error message indicating that the value entered was invalid. If the programmer wants to blank the field (fill it with spaces, for example) rather than restore the original value, the VALID procedure must return a value other than FALSE. The programmer must then use other methods for keeping the user in the field, such as setting _CUROBJ to the same GET object or returning 0 (zero). The following program illustrates how to have the VALID procedure return TRUE and yet make sure the user still remains in the same GET field through use of the _CUROBJ system variable:
Additional reference words: VFoxWin 3.00 FoxDos FoxWin 2.00 2.50 2.50a
2.50b 2.60 2.60a
KBCategory: kbprg
KBSubcategory: FxprgGeneral
|
|
Last Reviewed: April 30, 1996 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |