Array inside Struct

Discussion in 'Questions (Windows Mobile)' started by fjsantos, Jun 17, 2008.

  1. fjsantos

    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...

    Code:
    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: Jan 24, 2011
  2. Erel

    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.
     
  3. fjsantos

    fjsantos Member Licensed User

    Last edited: Jan 24, 2011
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice