Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only