in Delphi TIPS
In Delphi, enumaration types or Enum provides a way of to define a list of values. The values have no inherent meaning, and their ordinality follows the sequence in which the identifiers are listed. RTTI methods allow you to "dive" into Delphi enumerated types and values to get the values as string to get the number of elements, ...
Read the full article to learn about Using Delphi's Runtime Type Information for Enum Types