TJSONIniFile.ReadInteger function
Reads an integer value from the JSON ini file
Declaration
function ReadInteger(const Section: string; const Ident: string;
Default: LongInt): LongInt; overrideArguments
Section | The section name to read from |
Ident | The key name to read |
Default | Default value to return if key not found or conversion failed |
Function result
The integer value or default if key not found or conversion failed
Description
ReadInteger reads an integer value from the specified section and key.
If the stored value is a JSON number, it is converted to integer.
If the stored value is a string, it attempts to parse it as an integer.
If the key is not found or conversion fails, the
Default value is returned.See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
