Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compare two objects
Message
From
06/06/2007 11:34:09
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01230357
Message ID:
01230978
Views:
24
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
Previous
Reply
Map
View

Click here to load this message in the networking platform