Skip to content

TResources.Add

Adds a resource

Declaration

Source position: resource.pp line 255

public 
procedure TResources.Add(aResource: TAbstractResource);

Description

This method adds aResource to the object, and sets itself as the owner list of the resource.

Errors

If a resource with the same type, name and language ID already exists, an EResourceDuplicateException exception is raised.

See also

Name Description
TResources.AddAutoID Adds a resource and gives it a new autogenerated name