Unit 'TypInfo' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#rtl]

AddEnumElementAliases

Define aliases for enumerated elements.

Declaration

Source position: typinfo.pp line 1319

procedure AddEnumElementAliases(

  aTypeInfo: PTypeInfo;

  const aNames: array of string;

  aStartValue: Integer = 0

);

Description

AddEnumElementAliases defines aliases for enumerated values of type aTypeInfo. The aliases are specified in aNames, and are applied as of the element with ordinal value aStartIndex.

The aliases will be used in GetEnumValue

See also

RemoveEnumElementAliases

  

Remove aliases for enumerated elements.

GetEnumValue

  

Get ordinal value for enumerated type by name.

GetEnumeratedAliasValue

  

Return ordinal value for an enumerated value.


Documentation generated on: Oct 27 2024