[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Can you define an ENUM with some keywords included?

  • Thread starter Thread starter Mike Fechner
  • Start date Start date
Status
Not open for further replies.
M

Mike Fechner

Guest
It's probably more an intended limitation. You cannot use all ABL keywords as identifiers anywhere. This might be due to syntax ambiguity or just complexity in the compiler implementation. "Can you at least do a named member with specific string value?" No, the string value is always the Enum member name. You need to live with that. Enums are not made to provide anything "human readable". Emums are there to produce a type with a defined set of values. Enums are to make API's and Interfaces more clear and generally help to avoid programming mistakes. What we typically to, is to use the enum type name and member name as keys to retrieve a human readable value from our translation service. That way we maintain a localizable version of the human readable representation.

Continue reading...
 
Status
Not open for further replies.
Back
Top