Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object comparison
Message
From
12/10/1999 12:03:02
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00275435
Message ID:
00275486
Views:
22
Yes, Jim, but when else, in VFP or anywhere else, does a comparison have to refer to the exact same entity to report an equal test as true??? For instance, in the test
? a = b
. . . we never expect that "a" and "b" have to be the SAME entity, and in fact we have no real way in VFP to give any memvar an "alias" so that we could do so.

Ceertainly none that I can think of.

John says (too politely, in my opinion) that this "makes sense" but in reality it only makes sense once the special rules and considerations relative to object comaprisons are known. In fact I'm not so sure that they are fully known, so much as assumed/guessed-at!

My opinion is that we would have been better off if VFP had used a different operation (or even a function) for this to avoid the confusion that invariably must follow this "creation".

Just another opinion,

Jim N

>>Hmmm. What you're saying makes sense but it's still blowing me away as the objects created by the SCATTER NAME command are identical in every respect.
>
>Except for one major point, they are not the same object. Try this;
>
>Object1.Name = "FOOBAR"
>?Object2.Name && Displays the original name value
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform