Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: skip the Assign destroy object or fire a C5 crash
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00893546
Message ID:
00894642
Views:
17
Hi David,

I'm not sure what you're refering to but direct object comparison and COMPOBJ() both work in VFP6SP5. Here's the tes I run
oForm = CREATEO("Form")
oForm1 = CREATEO("Form")
oForm2 = oForm
? oForm1 = oForm		&& .F.
? oForm2 = oForm		&& .T.
? COMPOBJ(oForm1, oForm)		&& .F.
? COMPOBJ(oForm2, oForm)		&& .T.
>
>This ability to compare if two object references point to the same object was not added until VFP7.
>
>In earlier versions the only way to test, is to use one reference and perturb one of the properties and see if the perturbation shows up in the other reference, and then undo the perturbation.. hoping all along that you didn't trigger some access/assign method that did more damage to the state of the object. *g*
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform