Skip to content

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;

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.