Announcement

Collapse
No announcement yet.

The #define directive

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

  • The #define directive

    Hello Support Team,

    I would like to use in my code directives like

    #define MD combuf[0]

    That is, I'd like to define not just constants but rather variables' locations. How can I do that?

    Thanks in advance and best regards,
    Michael


  • #2
    Dear k-word,

    Please try this code:

    var buffer[10];

    #constant MD $buffer[0]

    func main()

    buffer[0]:='1';

    print(MD);

    endfunc

    Best regards,

    Comment


    • #3
      Thank you very much. This worked.

      Best regards,
      MIchael

      Comment

      Working...
      X