docs

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

WriteGroup

Writes a flat Clarion GROUP to a TOML table using field labels or NAME attributes as keys.

Clarion class declaration

WriteGroup PROCEDURE(STRING pTablePath,*GROUP pGroup),LONG

Purpose

Writes a flat Clarion GROUP to a TOML table using field labels or NAME attributes as keys.

Parameters

Parameter Type Description
pTablePath STRING TOML table path used for the mapped GROUP or RECORD.
pGroup *GROUP Ordinary Clarion GROUP instance to write.

Return value

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

Example (Clarion)

AppSettings GROUP
AppName       STRING(80),NAME('application_name')
Refresh       LONG,NAME('refresh_minutes')
            END
RetCode     LONG

CODE
Toml.StartDocument()
RetCode = Toml.WriteGroup('application',AppSettings)

Notes

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