Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Catégorie:
Codage, syntaxe et commandes
>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?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement