Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When is .NULL.= .NULL.?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00398289
Message ID:
00398304
Views:
20
>Hi all:
>I have a program that searches for a [CODENUMBER] and then checks the value of the [BARCODE] field. I want some action taken if the field is .NULL. I know the field is .NULL. because that is how it shows in the field and i can see that value in a debug window. However, the line
>If BARCODE = .NULL.
>doesn't evaluate as true. Why?

No, it will evaluate as .NULL. Any comparison with .NULL. returns .NULL. This is because there is no meaningful comparison to be made, since .NULL. has no value or data type. This is not the same as EMPTY() which can be applied to various data types.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform