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:
01197389
Views:
18
I don't have the exact code with me now, but what I can recall is the following:
select tblLeft
scatter name oLeft

select tblRight 
scatter name oRight

? compobj(oLeft,oRight) && gives .F.
I noticed that if I compared the fields with null directly it would give .null., so
? oLeft.FieldWithNull = oRight.FieldWithNull
would result in null instead of .T.


>>Hi all,
>>
>>I am using a scatter name oFields and compobj to compare the tables, but I get a .F. if the fields contain .null. while they are identical. Can I resolve this?
>>
>>Thanks beforehand
>
>I just tried a simple test and got .t. for two records containing NULL. Can you show the code which is failing?
Zakaria al Azhar
My blog on Actuaris.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform