Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing Records
Message
From
22/06/2004 09:00:25
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00915603
Message ID:
00916010
Views:
11
>Hilmar,
>
>>Is CompObj a new function to compare objects?
>>
>>I haven't used it - sorry, I am still with VFP6 - and it may very well work. I was just outlining the "old-fashioned" way to do it. Comparing Field with OldVal("Field"), you can do the entire comparison the moment the user tries to save (or close the form, etc.).
>
>CompObj() won't work in VFP7 or earlier if any of the columns are nullable and have null values. In VFP8 CompObj() was changed to consider two null properties as comparing the same:
>
>create cursor x1 ( i1 i null, i2 i )
>insert into x1 values ( null, 1 )
>scatter name ox
>scatter name oy
>? compobj( ox, oy ) && gives .t. in VFP8, .f. otherwise

David,

I'm using VFP8. Does the approach I defined in my original post seem reasonable to you or is there a better way?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform