Collection - destroying

View: New views
3 Messages — Rating Filter:   Alert me  

Collection - destroying

by richard terry-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is it possible to 'destroy' a collection, I don't mean just remove its
members.

What I mean is one does this to create one:

mycollection = new collection.

One may do something with it, but then want it to be 'gone' and non-existant.

Any advice appreciated.

Richard


------------------------------------------------------------------------------
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: Collection - destroying

by Benoît Minisini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Is it possible to 'destroy' a collection, I don't mean just remove its
> members.
>
> What I mean is one does this to create one:
>
> mycollection = new collection.
>
> One may do something with it, but then want it to be 'gone' and
> non-existant.
>
> Any advice appreciated.
>
> Richard
>

This is done automatically by the interpreter as soon nothing has a reference
on the collection. As all other objects.

Regards,

--
Benoît

------------------------------------------------------------------------------
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: Collection - destroying

by Stephen Bungay-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

   Returning the favour... :)

Collection = NULL


Steve.

richard terry wrote:

> Is it possible to 'destroy' a collection, I don't mean just remove its
> members.
>
> What I mean is one does this to create one:
>
> mycollection = new collection.
>
> One may do something with it, but then want it to be 'gone' and non-existant.
>
> Any advice appreciated.
>
> Richard
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@...
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

------------------------------------------------------------------------------
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user