Sign in Join
FPDoc Onlineexperiment

TResourceTreeNode.Remove function

Member of TResourceTreeNodepublicIn unit resourcetree

Removes a resource from the tree

Declaration

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

Arguments

aType

The type of the resource to remove

aName

The name of the resource to remove

aLangID

The language ID of the resource to remove

Function result

The removed resource, or nil if not found

Description

This method searches for the specified resource and removes it from the tree. If a language ID is not provided, the first resource found that matches aType and aName is returned. The removed resource is then returned.

If no resource is found, nil is returned.

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

See also

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