docs

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

SaveText

Serializes the current document into a caller-supplied Clarion CSTRING using the ANSI compatibility path.

Clarion class declaration

SaveText PROCEDURE(*CSTRING pTomlText),LONG

Purpose

Serializes the current document into a caller-supplied Clarion CSTRING using the ANSI compatibility path.

Parameters

Parameter Type Description
pTomlText *CSTRING 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(8192)
RetCode  LONG

CODE
Toml.StartDocument()
Toml.SetString('application.name','PageSnip')
RetCode = Toml.SaveText(TomlText)

Notes

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