Sign in Join
FPDoc Onlineexperiment

TResourceFactory.CreateResource function

Member of TResourceFactorypublicIn unit resfactory

Creates a new resource

Declaration

pascal
class function CreateResource(aType: TResourceDesc; 
 aName: TResourceDesc): TAbstractResource

Arguments

aType

The type of the resource to create

aName

The name of the resource to create

Function result

A new resource

Description

This class method creates a new resource of the class associated with the given type, and sets its name and type based on the values passed as parameters.

If no class matching the given type is found, the resource is created with TGenericResource class.

See also

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