SectionExists - cIniFile
Indicates whether a Section exists in an INI file
Type: Function
Return Data Type: Boolean
Parameters
| Parameter | Type | Description |
|---|---|---|
| sSection | String | The name of the Section to test the existence of |
Syntax
Function SectionExists String sSection Returns Boolean
Call Example
Get SectionExists sSection to BooleanVariable
Description
You use the SectionExists function to determine whether a Section name already exists in an INI file. To discover whether a Key exists, use KeyExists.
Before testing whether a Section exists, you must first set the psFileName property to the name of the INI file.
To see an example of SectionExists, see the sample for ReadSection.
Return Value
Returns True if section exists, False if section does not exist