DeleteEntry method

Project: Resource File Unit

Unit: PJResFile.

Class: TPJResourceFile

Applies to: ~>1.0

function DeleteEntry(const Entry: TPJResourceEntry): Boolean;

Removes a resource entry from the resource file object. The resource entry object is not freed so must be freed explicitly by the user when no longer required.

The recommended way to delete and free a resource entry is to free the TPJResourceEntry object while it is still linked into the resource file since this automatically unlinks it from the resource. The DeleteEntry method is provided in case you need to unlink a resource entry from a resource file and work on the entry after unlinking it, or perhaps to move the entry to a different resource file.

If the resource entry is not in the resource file then DeleteEntry does nothing.

Parameter:

Returns:

True if the resource entry was in the resource file and was deleted and False otherwise.