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.

LoadFromFile method

Project: Resource File Unit

Unit: PJResFile.

Class: TPJResourceFile

Applies to: ~>1.0

procedure LoadFromFile(const FileName: TFileName);

Loads a resource file from a named file. New TPJResourceEntry objects are created for each resource in the file.

Any TPJResourceEntry objects that existed before calling LoadFromFile are freed. You should be careful not to access any existing references to such objects after calling LoadFromFile.



Exceptions are raised if the file does not exist or does not contain a valid resource file.