| Home | Getting Started | Browse by Category | Class Methods | Low-Level API |
Reads a floating-point TOML value into a Clarion SREAL with a supplied default.
GetSReal PROCEDURE(STRING pKeyPath,SREAL pDefault,*SREAL pValue),LONG
Reads a floating-point TOML value into a Clarion SREAL with a supplied default.
| Parameter | Type | Description |
|---|---|---|
| pKeyPath | STRING | Dotted or indexed TOML key path. |
| pDefault | SREAL | Value returned when the TOML key or array element is absent. |
| pValue | *SREAL | Output variable that receives the requested value. |
Returns ProTOML:OK on success or a negative ProTOML error code. Call GetLastError for readable details.
TaxRate SREAL
RetCode LONG
CODE
RetCode = Toml.GetSReal('pricing.tax_rate',0.0,TaxRate)
| Home | Getting Started | Browse by Category | Class Methods | Low-Level API |