docs

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

LoadText

Loads a complete TOML document from ordinary Clarion text using the ANSI compatibility path.

Clarion class declaration

LoadText PROCEDURE(STRING pTomlText),LONG

Purpose

Loads a complete TOML document from ordinary Clarion text using the ANSI compatibility path.

Parameters

Parameter Type Description
pTomlText STRING Complete TOML document text.

Return value

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

Example (Clarion)

TomlText CSTRING(4096)
RetCode  LONG

CODE
TomlText = ?TomlEditor{PROP:Text}
RetCode = Toml.LoadText(TomlText)

Notes

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