docs

Home Getting Started Browse by Category Class Methods Low-Level API

TOML_GetFloat

Returns a single-precision floating-point value for the Clarion SREAL boundary.

Preferred Clarion class method

Applications using the ProTOML template normally call GetSReal.

GetSReal PROCEDURE(STRING pKeyPath,SREAL pDefault,*SREAL pValue),LONG

Low-level export contract

Item Value
Export TOML_GetFloat
Return type SREAL
Calling convention PASCAL, RAW, DLL(1)
Binary name NAME(‘TOML_GetFloat’)

Parameters

Parameter Type Description
handle LONG Positive document handle returned by a document-creation or load export.
pKeyPath *CSTRING TOML dotted or indexed key path.
defaultVal SREAL Default scalar returned when the key or element is absent.
enableDebug LONG Nonzero enables debug behavior for this call.

Return value / error handling

On failure, read TOML_GetLastErrorCode and TOML_GetLastErrorText immediately. The preferred class method converts that pattern into a class result plus retained LastErrorCode and LastErrorText.

Example (Clarion)

TaxRate SREAL
RetCode LONG

CODE
RetCode = Toml.GetSReal('pricing.tax_rate',0.0,TaxRate)

Notes

Home Getting Started Browse by Category Class Methods Low-Level API