Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Release An Object
Message
 
À
08/10/1998 19:53:07
Dave Nantais
Light speed database solutions
Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00145291
Message ID:
00145325
Vues:
33
Dave,

Here's some test code that demonstrates what David is saying.
ox=CreateObject("MyClass")
?TYPE("ox")
?ISNULL(ox)
ox.release
?TYPE("ox")
?ISNULL(ox)

DEFINE CLASS MyClass AS Label
 PROCEDURE Release
    RELEASE THIS
 ENDPROC
ENDDEFINE
You will notice that the ox variabel still exists after the call to the release, however its value is NULL and the object is gone. It retains the data type for the last value it had, O for Object.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform