Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compobj and .null.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 5
Miscellaneous
Thread ID:
01197380
Message ID:
01197394
Views:
20
>Yes, NULL can't be compared. NULL is just "Don't know" If you want to compare NULLs use NVL() function:
>
>? NVL(oLeft.FieldWithNull,0)  == NVL(oRight.FieldWithNull,0)  && If FieldWithNull is some of the numeric fields
>? NVL(oLeft.FieldWithNull,[]) == NVL(oRight.FieldWithNull,[]) && If FieldWithNull is char
>? NVL(oLeft.FieldWithNull,{}) == NVL(oRight.FieldWithNull,{}) && If FieldWithNull is date
>
No I don't want to compare each field seperately, but now I understand why the my comparison results in null. Thanks.
Zakaria al Azhar
My blog on Actuaris.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform