Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays of objects - releasing one element
Message
From
30/04/2002 18:22:13
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00651134
Message ID:
00651140
Views:
23
Hi Sergey

So in effect
oMyObject=.NULL.
is the same as
release oMyObject
and the memory associated with a variable is released when set to .NULL.

Regards
Geoff Scott

>>Hi
>>
>>I have a two dimensional array in which I store an identifier and an object (user object). The array is not static in that as users connect and disconnect they are added and deleted from the array (ADEL() and then DIMENSION the array again - possibly not necessary).
>>
>>Anyway my question is how do I release the object in the second column of my array. I know that the array gets reset but am I leaving my objects dangling???
>>
>To be on the safe side you can assign Null to the second column before removing that row.
May all your weeds be wildflowers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform