The Delphi Bug List

Entry No.
566
Documentation - VCL - General - IniFiles - TIniFile
There's an error in TIniFile.DeleteKey's documentation regarding non-existing sections and keys.
1.02 2.01 3.0 3.01 3.02 4.0 4.01 4.02 4.03 5.0 5.01 6.0 6.01 6.02 Kylix 1.0
AbsentAbsentExistsExistsExistsExistsExistsExistsExistsExistsExistsFixedFixedFixedUnknown
Description
Reported by Eric Maddox
In the help file under the topic
TIniFile.DeleteKey
It says:

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

DeleteKey does not create the section and key with an empty value. It deletes the key.

This is an error in the documentation. I am happy with the way DeleteKey really works.

Latest update of this entry: 2002-02-28

Post a comment on this bug


Index page
Delphi Bug List home page
The Delphi Bug Lists are presently maintained by Jordan Russell, who has taken over this task from Reinier Sterkenburg since August 2000.
All feedback is appreciated. See also the feedback section of the Delphi Bug List home page.