[Gambas-user] "Frozen" collections - quick answers only needed

adamnt42 at ...626... adamnt42 at ...626...
Thu Jul 16 00:32:42 CEST 2015


On Thu, 16 Jul 2015 00:22:29 +0200
Benoît Minisini <gambas at ...1...> wrote:

> Le 16/07/2015 00:17, adamnt42 at ...626... a écrit :
> > Hi all,
> >
> > I have a class that exposes a collection of child objects as a
> > property. How can I make it that the only object that can add or
> > delete child items to/from the collection is that class?  In other
> > words, no client class is allowed to Add a new item, or Remove or
> > nullify any existing item.
> >
> > tia bruce
> >
> 
> You have to create your own collection class that behaves like you want.
> 
> -- 
> Benoît Minisini
> 

Thanks for the quick reply Benoît.  That was the answer I was afraid of :-(

b

-- 
B Bruen <adamnt42 at ...3379... (sort of)>




More information about the User mailing list