Unit 'inicol' Package
[Overview][Constants][Classes][Index] [#fcl]

TIniCollection

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Collection which can write itself to an .ini file.

Declaration

Source position: inicol.pp line 44

type TIniCollection = class(TCollection)

public

  procedure Load;

  

Loads the collection from the default filename.

  procedure Save;

  

Save the collection to the default filename.

  procedure SaveToIni(); virtual;

  

Save the collection to a TCustomIniFile descendent.

  procedure SaveToFile();

  

Save collection to a file in .ini file format.

  procedure LoadFromIni(); virtual;

  

Load collection from a file in .ini file format.

  procedure LoadFromFile();

  

Load collection from file.

  property Prefix: string; [r]

  

Prefix used in global section.

  property SectionPrefix: string; [r]

  

Prefix string for section names.

  property FileName: string; [rw]

  

Filename of the collection.

  property GlobalSection: string; [rw]

  

Name of the global section.

end;

Inheritance

TIniCollection

  

Collection which can write itself to an .ini file.

|

TCollection

|

TPersistent

|

TObject,IFPObserved

Description

TIniCollection is a collection descendent which has the capability to write itself to an .ini file. It introduces some load and save mechanisms, which can be used to write all items in the collection to disk. The items should be descendents of the type TIniCollectionItem.

All methods work using a TCustomInifile class, making it possible to save to alternate file formats, or even databases.

An instance of TIniCollection should never be used directly. Instead, a descendent should be used, which sets the FPrefix and FSectionPrefix protected variables.

See also

TIniCollection.LoadFromFile

  

Load collection from file.

TIniCollection.LoadFromIni

  

Load collection from a file in .ini file format.

TIniCollection.SaveToIni

  

Save the collection to a TCustomIniFile descendent.

TIniCollection.SaveToFile

  

Save collection to a file in .ini file format.


Documentation generated on: Nov 22 2024