Implications of Using NULL in Data Validation RulesID: Q135753 3.00 WINDOWS kbprg The information in this article applies to:
SUMMARYBecause Data Validations are expressions, NULL values inserted into fields and passed to Data Validation expressions behave in a consistent manner with that of other expressions. If the Data Validation for a field resolves to True (.T.) or False (.F.) with a NULL value, that logical result is accepted. In many cases, the expression will evaluate to NULL (For example, NULL > 1000). In this case, because the expression returns NULL, not True or False, it is rejected.
MORE INFORMATION
Step-by-Step Example1. Create a program called Myprog.prg 2. Type in the following code segment:
3. Save the program.
4. In the Command window, type:
5. The program executes, and the INSERT command with city equal to .NULL.
Additional reference words: 3.00 VFoxWin
KBCategory: kbprg
KBSubcategory: FxprgGeneral
|
Last Reviewed: November 26, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |