Sign in Join
FPDoc Onlineexperiment

TResources.Remove function

Member of TResourcespublicIn unit resource

Removes a resource

Declaration

pascal
function Remove(aType: TResourceDesc; aName: TResourceDesc; 
 const aLangID: TLangID): TAbstractResource; overload
function Remove(aType: TResourceDesc; aName: TResourceDesc)
: TAbstractResource; overload
function Remove(aResource: TAbstractResource): TAbstractResource
 ; overload
function Remove(aIndex: Integer): 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

aResource

The resource to remove

aIndex

The index of the resource to remove

Function result

The removed resource

Description

This method searches for a resource based on passed parameters and removes it from the object.

The removed resource is then returned.

Errors

If no matching resource is found, an EResourceNotFoundException exception is raised.

See also

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