How to initialise simple RESOURCE members

<simple-initialiser>
simple-initialiser ::=
     <number> | <string> | <resource-identifier>
  • A BYTE, WORD, LONG or DOUBLE member must be initialised with a number. The number can be the result of simple expressions such as 3+1 or NUM1+NUM2 where NUM1 and NUM2 have been #defined earlier on in the file.

  • A TEXT, LTEXT or BUF member must be initialised with a string. If a length-limit has been declared for that member in the STRUCT definition then an error will be generated if the string is longer than the limit. You cannot override this maximum length.