Function Reference


IniDelete

Deletes a value from a standard format .ini file.

IniDelete ( "filename", "section" [, "key"] )

Parameters

filename The filename of the .ini file.
section The section name in the .ini file.
key [optional] The key name in the .ini file to delete. If the key name is not given the entire section is deleted. The Default keyword may also be used which will cause the section to be deleted.

Return Value

Success: Returns 1.
Failure: Returns 0 if the INI file does not exist or if the file is read-only.

Remarks

A standard ini file looks like:
[SectionName]
Key=Value


Related

IniRead, IniWrite, IniReadSection, IniReadSectionNames, IniRenameSection, IniWriteSection

Example


IniDelete("C:\Temp\myfile.ini", "section2", "key")