PRB: NULL and .NULL. Are Not Interchangeable in PropertiesLast reviewed: October 29, 1996Article ID: Q156925 |
The information in this article applies to:
SYMPTOMSIn Visual FoxPro 5.0, when assigning a null value to a property in the Properties window, you need to use .NULL. instead of NULL. The values are not interchangeable when used in a property in the Properties window.
CAUSEIn the Properties window, you do not have to enter quotes to enter a string. The text NULL entered without the quotes is interpreted as the string 'NULL' instead of the actual .NULL. value.
WORKAROUNDYou need to enter the string as .NULL. in the Properties window.
STATUSThis behavior is by design.
MORE INFORMATIONAt times, you may wonder why you can enter the following in the Command window and get the expected result:
X=NULL ?ISNULL(X) <-- .T. is returnHowever, ISNULL() evaluates as .F. instead of .T. when a NULL value, without the period on both ends, is assigned to a property in the Properties window.
Steps to Reproduce Behavior
|
KBCategory: kbprg kbtool kbprb
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |