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:
00893630
Vues:
12
Hi George,
>
>There is a problem here, but I'm not sure what it is. However, there is some problem with the code you present.
>
>First,
This.MyObject = m.MyObject
never will be true.

Never say never. :) It will be true if variables/properties on the left and right of the "=" reference the same object.
oForm = CREATEOBJECT("Form")
oForm1 = oForm
? oForm1 = oForm    && .T.
>When comparing objects, always use the COMPOBJ() function.

That's will tell you if objects have the same properties and there values but not if it's the same object

>For example,
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
>oFSO1 = CREATEOBJECT('Scripting.FileSystemObject')
>? oFSO = oFSO1 && Returns .F.
>? COMPOBJ(oFSO, oFSO1) && Returns .T.


<snip>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform