Sign in Join
FPDoc Onlineexperiment

TIniCollection.LoadFromIni procedure

Member of TIniCollectionpublicIn unit IniCol

Load collection from a file in .ini file format.

Declaration

pascal
procedure LoadFromIni(Ini: TCustomInifile; Section: string); virtual

Arguments

Ini

Ini object to load data from.

Section

Name of the global section.

Description

LoadFromIni will load the collection from the Ini instance. It first clears the collection, and reads the number of items from the global section with the name as passed through the Section argument. After this, an item is created and added to the collection, and its data is read by calling the LoadFromIni method, passing the appropriate section name as found in the global section.

The description of the global section can be found in the SaveToIni method description.

See also

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