Sign in Join
FPDoc Onlineexperiment

TFPExprIdentifierDefs.IndexOfIdentifier function

Member of TFPExprIdentifierDefspublicIn unit fpExprPars

Find the index of an identifier by name

Declaration

pascal
function IndexOfIdentifier(const AName: ShortString): Integer

Arguments

AName

The name of the identifier to find

Function result

Returns the index of the identifier or -1 if not found

Description

The IndexOfIdentifier method searches the collection for an identifier with the specified name and returns its index position. If no identifier with the given name is found, it returns -1.

The search is case-sensitive.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.