Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compare two objects
Message
De
06/06/2007 11:34:09
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01230357
Message ID:
01230978
Vues:
18
Thanks for checking for me.

>The code works correctly in VFP9 but fails in VFP8. Looks like there is a bug in COMPOBJ() in VFP8. It reports objects as different if they have 'class' or 'baseclass' properties even if they have the same values in both objects.
>
>>Sorry to resurrect this issue, but....
>>PARAMETERS lcTbl1
>>CLOSE TABLES ALL
>>USE (lcTbl1) ALIAS tbl1
>>SCAN
>>	SCATTER NAME obj2 MEMO
>>	SCATTER NAME obj1 MEMO
>>	? RECNO(),COMPOBJ(obj1,obj2)
>>ENDSCAN
>>
>>When I pass in a 5 record VCX each COMPOBJ() returns .F.
>>
>>What am I missing?
>>
>>Thanks.....Rich
>>
>>Update: When I pass in a VCX or SCX I get this result. When I pass in a DBF it seems to work
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform