[Overview][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'LCLProc' (#lcl)

GetEnumValueDef

Finds an enum member by name

Declaration

Source position: lclproc.pas line 98

function GetEnumValueDef(

  TypeInfo: PTypeInfo;

  const Name: string;

  const DefaultValue: Integer

):Integer;

Arguments

TypeInfo

  

The enum TypeInfo.

Name

  

The member name.

DefaultValue

  

The value returned when the element was not found.

Function result

The member ordinal

The latest version of this document can be found at lazarus-ccr.sourceforge.net.