RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegIniFile.DeleteKey Method

Erases a data value that is associated with a key.

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

Call DeleteKey to erase a data value associated with a key. Section is string containing the name of the system registry key containing the value to delete. Ident is a string containing the name of the data value to delete.

Note: DeleteKey for TRegIniFile obscures the DeleteKey method of TRegistry, from which TRegIniFile descends. You can access TRegistry's DeleteKey method by casting the call to DeleteKey as type TRegistry, or by using the scope resolution operator.
Note: On Windows 95, DeleteKey will delete the key and all its subkeys. On Windows NT, the subkeys must be explicitly deleted by separate calls to DeleteKey.
 

 

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