docs

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

SetReal

Stores a Clarion REAL as a double-precision floating-point TOML value.

Clarion class declaration

SetReal PROCEDURE(STRING pKeyPath,REAL pValue),LONG

Purpose

Stores a Clarion REAL as a double-precision floating-point TOML value.

Parameters

Parameter Type Description
pKeyPath STRING Dotted or indexed TOML key path.
pValue REAL 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.SetReal('customer.credit_limit',12500.50)

Notes

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