Sign in Join
FPDoc Onlineexperiment

ReadComponentRes function

In unit Classes

Read component properties from a resource in the current module.

Declaration

pascal
function ReadComponentRes(const ResName: string; Instance: TComponent)
: TComponent

Description

ReadComponentRes will read the component's properties from the resource ResName in the current module (always program module). It returns Nil if the resource was not found. It returns Instance if the resource was found and successfully applied to the component.

Errors

The function may raise an exception if the stream contains wrong data.

See also

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