Sign in Join
FPDoc Onlineexperiment

TResourceTreeNode.Find function

Member of TResourceTreeNodepublicIn unit resourcetree

Searches for a resource

Declaration

pascal
function Find(aType: TResourceDesc; aName: TResourceDesc)
: TAbstractResource; overload
function Find(aType: TResourceDesc; aName: TResourceDesc; 
 const aLangID: TLangID): TAbstractResource; overload

Arguments

aType

The type of the resource to search for

aName

The name of the resource to search for

aLangID

The language ID of the resource to search for

Function result

The resource that matches the search criteria

Description

This method searches for a resource with the given type and name in the tree. If a language ID is not provided, the first resource found that matches aType and aName is returned.

If no resource is found, nil is returned.

This method should only be called on root nodes (instances of TRootResTreeNode).

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