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

Fabien Bodard gambas.fr at ...626...
Thu Jul 16 07:30:55 CEST 2015


Just inherits collection and overload the _put/_get, add and remove
procedures.
Le 16 juil. 2015 00:33, "adamnt42 at ...626..." <adamnt42 at ...626...> a écrit :

> 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)>
>
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list