TResources.Find function
Searches for a resource
Declaration
function Find(aType: TResourceDesc; aName: TResourceDesc;
const aLangID: TLangID): TAbstractResource; overload
function Find(aType: TResourceDesc; aName: TResourceDesc)
: TAbstractResource; overload
function Find(const aType: TResName; const aName: TResName;
const aLangID: TLangID): TAbstractResource; overload
function Find(const aType: TResName; const aName: TResID;
const aLangID: TLangID): TAbstractResource; overload
function Find(const aType: TResID; const aName: TResName;
const aLangID: TLangID): TAbstractResource; overload
function Find(const aType: TResID; const aName: TResID;
const aLangID: TLangID): TAbstractResource; overload
function Find(const aType: TResName; const aName: TResName)
: TAbstractResource; overload
function Find(const aType: TResName; const aName: TResID)
: TAbstractResource; overload
function Find(const aType: TResID; const aName: TResName)
: TAbstractResource; overload
function Find(const aType: TResID; const aName: TResID)
: TAbstractResource; overloadArguments
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. If a language ID is not provided, the first resource found that matches aType and aName is returned.
Errors
If the resource is not found, an EResourceNotFoundException exception is raised.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
