Unit 'fpexprpars' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TFPExprIdentifierDefs.IndexOfIdentifier

Find the index of an identifier by name

Declaration

Source position: fpexprpars.pp line 584

public function TFPExprIdentifierDefs.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.


Documentation generated on: Dec 15 2025