Thanks Tobias,

I am still a bit slow and fuzzy but doing better. I will slowly start doing
more and I am working (very slowly) on a couple articles for the magazine.
At the moment my energy is very limited....

On Thu, Jul 16, 2015 at 9:56 AM, Tobias Boege <tabo...@gmail.com> wrote:

> On Thu, 16 Jul 2015, Rolf-Werner Eilert wrote:
> > Randall,
> >
> > Thank you for making that clear. Is it possible to make something like
> > an array out of a whole structure? What would this code look like?
> >
>
> Yes, you can use a Struct just as you use classes. I believe I sent you a
> link yesterday where derived arrays are explained :-) If you have any class
> (or Struct) MyClass in Gambas, you can use the identifier MyClass[] in your
> code and the interpreter will recognise this and create a class -- on the
> fly -- which represents an array of MyClass objects.
>
> So, if you have
>
>   Struct Hund
>     Wuff As String
>   End Struct
>
> you can have an array of Hunde via
>
>   Dim aHunde As New Hund[]
>
> I have also put the embedded array syntax into a new section in the Struct
> declaration wiki page[0]. Do you think it's better now?
>
> Regards,
> Tobi
>
> [0] http://gambaswiki.org/wiki/lang/structdecl
>
> PS: Randall, nice to see you around again :-)
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
>
> ------------------------------------------------------------------------------
> 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@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
If you ask me if it can be done. The answer is YES, it can always be done.
The correct questions however are... What will it cost, and how long will
it take?
------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to