[Overview][Resource strings][Constants][Types][Procedures and functions][Index] Reference for unit 'tiRTTI' (#tiopf)

tiGetEnumNames

Returns the enum names into a TStrings object

Declaration

Source position: tiRTTI.pas line 101

procedure tiGetEnumNames(

  TypeInfo: PTypeInfo;

  Names: TStrings;

  PrefixLen: Integer = 0

);

Arguments

TypeInfo

  

Enum type that needs to be queried.

Names

  

String List that will contain the names when the method is complete.

PrefixLen

  

The length of enum prefixes we should trim off.

Description

Use this method if you want the actualy names of the enumerated types. The results are returned into a TStrings object. You can use it form example to populate a ComboBox will all enum names.


Documentation generated on: 2017-08-16