[Overview][Resource strings][Constants][Types][Classes][Index] Reference for unit 'resource' (#fcl-res)

TResources.Remove

Removes a resource

Declaration

Source position: resource.pp line 264

public function TResources.Remove(

  aType: TResourceDesc;

  aName: TResourceDesc;

  const aLangID: TLangID

):TAbstractResource; overload;

function TResources.Remove(

  aType: TResourceDesc;

  aName: TResourceDesc

):TAbstractResource; overload;

function TResources.Remove(

  aResource: TAbstractResource

):TAbstractResource; overload;

function TResources.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

Function result

The removed resource

Arguments

aType

  

The type of the resource to search for

aName

  

The name of the resource to search for

Arguments

aResource

  

The resource to remove

Arguments

aIndex

  

The index of the resource to remove

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

TResources.Find

  

Searches for a resource


Documentation generated on: May 14 2021