Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

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.



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