TJSONIniFile.ReadInteger¶
Reads an integer value from the JSON ini file
Declaration¶
Source position: jsonini.pp line 58
public
function TJSONIniFile.ReadInteger(const Section: string;
const Ident: string; Default: LongInt)
: LongInt; override;
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¶
| Name | Description |
|---|---|
| WriteInteger | Writes an integer value to the JSON ini file |
| ReadInt64 | Reads a 64-bit integer value from the JSON ini file |