docs

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

AppendTable

Appends one row to a TOML array of tables and returns the new zero-based index.

Clarion class declaration

AppendTable PROCEDURE(STRING pKeyPath,*LONG pIndex),LONG

Purpose

Appends one row to a TOML array of tables and returns the new zero-based index.

Parameters

Parameter Type Description
pKeyPath STRING Dotted or indexed TOML key path.
pIndex *LONG Zero-based array index, or output LONG that receives the new index.

Return value

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

Example (Clarion)

RowIndex LONG
RetCode  LONG

CODE
RetCode = Toml.AppendTable('contacts',RowIndex)

Notes

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