Array inside Struct

fjsantos

Member
Licensed User
Hi all.

I wonder if it's possible to have an array inside a struct.

I mean if i can do something like this...

B4X:
Dim Type (x, y, value, rotate, status, move(x, y)) Piece(BWIDTH, BHEIGHT)
...or if there are any possibilities to do it.

Best Regards, fjsantos.
________
RGV250
 
Last edited:

Erel

Administrator
Staff member
Licensed User
This is not possible.
Structs are in fact "named" arrays. During compilation structs are converted to arrays by changing the fields names to their corresponding indexes.
 
Top