[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Search an instance of a certain class
Source position: contnrs.pp line 315
public function TFPHashObjectList.FindInstanceOf( |
AClass: TClass; |
AExact: Boolean; |
AStartAt: Integer |
):Integer; |
AClass |
|
Class to search for. |
AExact |
|
Should the class match exactly, or also consider descendents |
AStartAt |
|
Position in list to start search. |
First instance of AClass after position AStartAt
FindInstanceOf searches the list for an instance of class AClass. It starts searching at position AStartAt. If AExact is True, only instances of class AClass are considered. If AExact is False, then descendent classes of AClass are also taken into account when searching. If no instance is found, Nil is returned.
lazarus-ccr.sourceforge.net |