Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: skip the Assign destroy object or fire a C5 crash
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00893546
Message ID:
00894642
Vues:
14
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform