Announcement

Collapse
No announcement yet.

Array question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • markl
    replied
    Ok thanks, I understand.

    Leave a comment:


  • ESPsupport
    replied
    You can't initialise arrays to addresses at compile time as the address is not yet known.

    Regardless what you have said is to put the contents of Enabled[0] into e[3], not it's address, so you probably meant &Enabled[0], regardless you need to do this in your code, not as an initialiser.

    Leave a comment:


  • markl
    started a topic Array question

    Array question

    I have a question about arrays, I have read that we can do an array of pointers, but I am confused. When I try this:

    var e[] := [7,8,9,Enabled[0],2,2,2];

    I get this error:

    Error: expected ']' to close initialiation sequence, got '[' (line 707 column 22 file:DaytimeB.4Dg)
    Error: semicolon expected after array declarations, got while (line 709 column 5 file:DaytimeB.4Dg)

    What should be the proper form?

    Thanks,

    Mark
Working...
X