[Overview][Types][Classes][Procedures and functions] |
Search for an instance of a certain class
Source position: contnrs.pp line 86
public function TObjectList.FindInstanceOf( |
AClass: TClass; |
AExact: Boolean; |
AStartAt: Integer |
):Integer; |
AClass |
|
Class of which result should be a descendent |
AExact |
|
Should the class of the result be exactly the requested class. |
AStartAt |
|
Index to start the search |
Instance found or Nil if none was found
FindInstanceOfwill look through the instances in the list and will return the first instance which is a descendent of class AClassif AExactis False. If AExactis true, then the instance should be of class AClass.
If no instance of the requested class is found, Nilis returned.
None.
|
Search for an object in the list |