TIniFile.DeleteKey
procedure DeleteKey(const Section, Ident: string) Section: Section in which to look for Ident Ident: Key to be deleted
Description
This procedure deletes a single key from a TIniFile
Example
example.ini in soldatserver's root folder (before the script execution)
[Section1]
Integer1=2
Bool1=2013-08-21
Bool2=2013-08-21 13:48:00
Bool3=00:00:00
script code:
var
ini: TIniFile;
begin
ini := File.CreateINI('example.ini');
ini.DeleteKey('Section1','Integer1');
ini.UpdateFile;
ini.Free;
end.
example.ini in soldatserver's root folder (after the script execution)
[Section1]
Bool1=2013-08-21
Bool2=2013-08-21 13:48:00
Bool3=00:00:00