On Tue, Nov 29, 2016 at 2:40 PM, Cam Era <cybercam...@gmail.com> wrote:

> I expect I'm trying to do something that's not possible with Gambas, but
> I'll ask this anyway.
>
> I'm trying to create an n x n array of a STRUCT which itself contains an
> array of type STRUCT.
>
> I have this declaration:
>
>     Public Struct MapObjec
>       xPos As Integer
>       yPos As Integer
>       ObjectType As Integer
>       isVisible As Boolean
>       ObjectPicture As Picture
>     End Struct
>
>     Public Struct MapRoom
>       MapObjects[50] As MapObject
>     End Struct
>
>     Static Private WorldMap[100, 100] As MapObject
>
>
> and this code:
>
>     WorldMap[5, 10].MapObjects.yPos = 100
>

apologies, this should read:

    WorldMap[5, 10].MapObjects[5].yPos = 100

and still gives the error.

TIA
------------------------------------------------------------------------------
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to