Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Release An Object
Message
 
To
08/10/1998 19:53:07
Dave Nantais
Light speed database solutions
Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00145291
Message ID:
00145325
Views:
32
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform