[Overview][Constants][Classes] | Reference for unit 'inicol' (#fcl) |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Collection item with support for loading/saving from/to ini file
Source position: inicol.pp line 13
type TIniCollectionItem = class(TCollectionItem) |
||
public |
||
procedure SaveToIni(); virtual; abstract; |
|
Method called when the item must be saved |
procedure LoadFromIni(); virtual; abstract; |
|
Method called when the item must be loaded |
procedure SaveToFile(); |
|
Save item to a file |
procedure LoadFromFile(); |
|
Load item from a file |
property SectionName: String; [rw] |
|
Default section name |
end; |
|
Collection item with support for loading/saving from/to ini file |
|
| | ||
| | ||
TObject |
TIniCollectionItem is a #rtl.classes.tcollectionitem descendent which has some extra methods for saving/loading the item to or from an .ini file.
To use this class, a descendent should be made, and the SaveToIni and LoadFromIni methods should be overridden. They should implement the actual loading and saving. The loading and saving is always initiated by the methods in TIniCollection, TIniCollection.LoadFromIni and TIniCollection.SaveToIni respectively.
|
Collection which can write itself to an .ini file |
|
|
Method called when the item must be saved |
|
|
Method called when the item must be loaded |
|
|
Load collection from a file in .ini file format. |
|
|
Save the collection to a TCustomIniFile descendent |
No notes exist for this page yet.