Sign in Join
FPDoc Onlineexperiment

ReadLFMHeaderFromFile function

In unit LResources

Reads the LFM header from the specified file name.

Declaration

pascal
function ReadLFMHeaderFromFile(const Filename: string; 
 out LFMType: string; 
 out LFMComponentName: string; 
 out LFMClassName: string): Boolean

Arguments

Filename

File with the LFM content read in the routine.

LFMType

Returns the resource type in the LFM header. Normally 'object'.

LFMComponentName

Returns the component name read from the LFM header. Like 'Form1'.

LFMClassName

Returns the class name read from the LFM header. Like 'TForm1', but may also include a unit name space such as 'ns.unit2/TForm2'.

Function result

Returns True if the resource header is successfully read from the file and the LFM class name contains a non-empty value.

Description

Nothing more than the line above yet.

See also

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