Icon Enumerations

An enumeration is a collection of symbols used to represent a specific set of values. An enumeration must be declared as a specific type and, because they are typed, enumerations offer the additional benefit of preventing improper symbolic values that aren't part of the enumeration from being used anywhere that the enumeration type is required.

An enumeration is declared as follows:

<EnumerationName> = (<Member Name>[,<Member Name>]);

For example, the following enumeration type declaration is from the WebUI unit in the Elevate Web Builder component library and specifies the various cursor types that can be used in a UI element:

TCursor = (crAuto,crCrossHair,crDefault,crHelp,crMove,crPointer,

Information Internally, enumerations are handled as integers by the compiler, and you can cast enumerations as integers and integers as enumerations.