[Gambas-user] How can I copy an object

Benoit Minisini gambas at ...1...
Fri Sep 8 17:34:34 CEST 2006


On Friday 08 September 2006 10:40, Timothy Marshal-Nichols wrote:
> > -----Original Message-----
> > From: gambas-user-bounces at lists.sourceforge.net
> > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of rolf
> > Sent: Thursday, 07 September 2006 19:46
> > To: mailing list for gambas users
> > Subject: [Gambas-user] How can I copy an object
> >
> >
> > Hi your GAMBAS fighter,
> >
> > I'm still fighting with objects and a question raises to me.
> >
> > I need a combobox with 5 or 6 entries more then once and have to setup an
> > array to manage them. Collect and access the comboboxes in the
> > array is no
> > problem, but can I create a "sample combobox" with all the wanted
> > entries and
> > copy this box, of course with a different name and a different
> > position into
> > the array as offen as needed?
> >
> > Many thanks for your help.
> > Rolf
>
> Why swap over complete objects. The ComboBox (like the ListBox) has a List
> property that can easily be used to get or update the ComboBox content.
>
> In older versions of Gambas this was a string with each item separated by a
> new line. In the latest version of Gambas it is a string array. (There is
> no explanation for the change.)

I can give you. :-)

- Why not using a String array? It is more logical.

- With a string array, you have only the real list entries to translate. You 
dont have to translate a string with all entries separated with '\n', which 
can break the program if the translator forgets a '\n'.

Regards,

-- 
Benoit Minisini





More information about the User mailing list