Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparing Records
Message
 
 
À
21/06/2004 22:00:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00915603
Message ID:
00915920
Vues:
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
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform