Use an operator keyword as part of an Enum, e.g. 'MOVE'

codeX
2022-07-14
2022-07-14
  • codeX - 2022-07-14

    Hi Everyone,

    Does anyone know how I can use an operator keyword as part of an Enum?

    E.g.

    TYPE MyEnum : 
       MOVE, <-------------------
       MOVE_TO_X,
       MOVE_TO_Y
    END_TYPE
    

    Thanks for your support,

     
  • hermsen

    hermsen - 2022-07-14

    simply NO

    KRYWORDS cannot be used as variable names, the compiler will not allow it.
    You could add a post underscore...

     
  • codeX - 2022-07-14

    Thanks for the quick reply πŸ‘

     

Log in to post a comment.