Cast Enumeration Value to Integer in Delphi
问题 Is it possible to cast/convert an Enumeration Value to Integer in Delphi? If yes, then how? 回答1: This is called out explicitly at the documentation for enumerated types: Several predefined functions operate on ordinal values and type identifiers. The most important of them are summarized below. | Function | Parameter | Return value | Remarks | |----------|:-----------------------------------------------------:|----------------------------------:|-----------------------------------------------