[Gambas-user] An utility component for Gambas

Julio Sanchez jusabejusabe at ...626...
Tue Dec 2 11:01:21 CET 2014


Benoît:

Well...

 what if only create an object of the same class of "original" object (no
controls) and copy the values of the properties?
( Return a shallow copy of object. )

Comment:
In other languages, there _copy() method which can be declared as must back

https://docs.python.org/2/library/copy.html
http://www.elclubdelprogramador.com/2014/08/13/pyhton-crea-una-copia-rapida-de-un-objeto-en-python/


(maybe that add a new _copy () method is beyond what you ask for gb.util)

Regards
Julio


2014-12-02 10:37 GMT+01:00 Benoît Minisini <gambas at ...1...>:

> Le 02/12/2014 10:28, Julio Sanchez a écrit :
> > Benoît:
> >
> > New function for add: Copy Objects
> >
> > Code Source:
> >
> http://www.gambasforge.org/code-62-copier-un-controle-ou-un-conteneur-et-ses-enfants.html
> >
> > Regards,
> >
> > Julio
> >
>
> Alas this is not reliable at all. The state of a control is internal,
> copying its properties is not enough. It may work, or not...
>
> --
> Benoît Minisini
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> 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