Difference between revisions of "TIniFile.WriteInteger"
(new page) |
(No difference)
|
Latest revision as of 01:42, 23 August 2013
procedure WriteInteger(const Section, Ident: String; Value: integer) Section: Section name Ident: Property name (key) Value: Value to be assigned to a key
Description
This procedure updates an existing key's value or creates a new one.
Example
Example adds a new (useless) key to soldat.ini
const
// assuming Sandbox Level < 2
PATH = 'soldat.ini';
var
Ini: TIniFile;
begin
Ini := File.CreateINI(PATH);
Ini.WriteInteger('BOTS','SatanKey',666);
Ini.UpdateFile;
Ini.Free;
end.