Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compare two objects
Message
 
 
À
05/06/2007 19:16:29
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:
01230797
Vues:
26
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
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform