docs

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

SetSReal

Stores a Clarion SREAL as a single-precision floating-point TOML value.

Clarion class declaration

SetSReal PROCEDURE(STRING pKeyPath,SREAL pValue),LONG

Purpose

Stores a Clarion SREAL as a single-precision floating-point TOML value.

Parameters

Parameter Type Description
pKeyPath STRING Dotted or indexed TOML key path.
pValue SREAL Value to store at the specified TOML key path.

Return value

Returns ProTOML:OK on success or a negative ProTOML error code. Call GetLastError for readable details.

Example (Clarion)

RetCode LONG

CODE
Toml.StartDocument()
RetCode = Toml.SetSReal('pricing.tax_rate',0.0975)

Notes

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