"[Y]ou can declare up to 251 (0 to 250) literals in a single enum type"
This restriction seems rather odd to me. Why 251, specifically? Given how close it is in value to 256, it seems logical to conclude that enums are stored under the hood as bytes - but if so, why not let us use all 256 possible values?
This is a design decision that comes from Dynamics AX version 1.0. It has never been changed anymore. Do you really need 256 enumerations?
In the SQL database, it is not a byte, at least not anymore. It is stored as BigInt. In the past, I did a test and was able to write and read data with X++ coding using a value of 1000 and higher. I was bypassing the enumeration data type for this test.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.