docs

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

SaveFile

Saves the current document as a .toml file.

Clarion class declaration

SaveFile PROCEDURE(STRING pFileName),LONG

Purpose

Saves the current document as a .toml file.

Parameters

Parameter Type Description
pFileName STRING Path of the .toml file to load or save.

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()
Toml.SetLong('application.refresh_minutes',15)
RetCode = Toml.SaveFile('settings.toml')

Notes

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