docs

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

KeyExists

Reports whether a TOML key path exists in the current document.

Clarion class declaration

KeyExists PROCEDURE(STRING pKeyPath,*BYTE pExists),LONG

Purpose

Reports whether a TOML key path exists in the current document.

Parameters

Parameter Type Description
pKeyPath STRING Dotted or indexed TOML key path.
pExists *BYTE Receives ProTOML:True or ProTOML:False.

Return value

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

Example (Clarion)

Exists  BYTE
RetCode LONG

CODE
RetCode = Toml.KeyExists('application.name',Exists)

Notes

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