Sign in Join
FPDoc Onlineexperiment

TClassList.IndexOf function

Member of TClassListpublicIn unit Contnrs

Search for a class pointer in the list.

Declaration

pascal
function IndexOf(AClass: TClass): Integer

Arguments

AClass

Class pointer to search for.

Function result

Position of the class pointer, or -1 if not found.

Description

IndexOf searches for AClass in the list, and returns it's position if it was found, or -1 if it was not found in the list.

Errors

None.

See also

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