[Gambas-user] structure and class

Jussi Lahtinen jussi.lahtinen at gmail.com
Tue Aug 8 18:07:08 CEST 2023


Use collection like Lee suggested or if the variables/methods can be
grouped in some subclasses, then create a base class with an object array /
collection and put the subclasses there as needed.

Jussi

On Tue, Aug 8, 2023 at 11:57 AM Marco Ancillotti <gambas at servinfo.it> wrote:

> Hi all,
>
> I have a working program that use a class that have only variables.
>
> Now I need do dynamic declare the class , is there a way to do so ?
>
> I can use structure but I learn that in gambas a structure is simply a
> class with only variables and the
> help say it's slow. is there another way to do it or I need to use
> structure ?
>
> thanks in advance,
> Marco.
>
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230808/0388d75e/attachment.htm>


More information about the User mailing list