RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegistryIniFile.DeleteKey Method

Erases the data value associated with an INI file entry.

Pascal
procedure DeleteKey(const Section: String; const Ident: String); override;
C++
virtual __fastcall DeleteKey(const AnsiString Section, const AnsiString Ident);

Call DeleteKey to erase a data value associated with an INI file entry. Section is string containing the name of an INI file section, and Ident is a string containing the name of the key from for which to set a nil (Delphi) or NULL (C++) value.

Note: Attempting to erase a data value in a nonexistent section or attempting to erase data from a nonexistent key are not errors. In these cases, DeleteKey creates the section and key and sets its initial value to an empty value.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!