GetValue - cIniProcessor
Reads a value from an ini file
Type: Function
Return Data Type: String
Parameters
| Parameter | Type | Description |
|---|---|---|
| sSection | String | Ini section to use |
| sKey | String | Ini key to read |
| sDefault | String | Value to return if the key and/or section do not exist |
Syntax
Function GetValue String sSection String sKey String sDefault Returns String
Call Example
Get GetValue sSection sKey sDefault to StringVariable
Description
Reads a value from an ini file.
The provided default value is returned if the key and/or section does not exist.
Note that this works on the ini data in memory, call ReadFromFile to load an ini file from disk and WriteToFile to apply the change.
Return Value
Value in section and key or sDefault if the key and/or section do not exist