Skip to content

DeleteKey - cIniFile

Deletes a Key from a Section of an INI file

Type: Procedure

Parameters

Parameter Type Description
sSection String The name of the Section containing the Key
sKey String The name of the Key

Syntax

Procedure DeleteKey String sSection String sKey

Call Example

Send DeleteKey sSection sKey

Description

Use the DeleteKey method to delete a Key from a Section of an INI file.

Before deleting a Key, set the psFileName property to the name of the INI file.

Caution

Passing a blank ("") key implies ALL and may delete a complete section of an INI file.

To test whether a Key exists, use the KeyExists method, it will return if the key is blank.