| Home | Getting Started | Browse by Category | Class Methods | Low-Level API |
Reads a string from a TOML key path, using a supplied default when the key is absent.
GetString PROCEDURE(STRING pKeyPath,STRING pDefault,*CSTRING pValue),LONG
Reads a string from a TOML key path, using a supplied default when the key is absent.
| Parameter | Type | Description |
|---|---|---|
| pKeyPath | STRING | Dotted or indexed TOML key path. |
| pDefault | STRING | Value returned when the TOML key or array element is absent. |
| pValue | *CSTRING | Output variable that receives the requested value. |
Returns ProTOML:OK on success or a negative ProTOML error code. Call GetLastError for readable details.
AppName CSTRING(128)
RetCode LONG
CODE
RetCode = Toml.GetString('application.name','Untitled',AppName)
| Home | Getting Started | Browse by Category | Class Methods | Low-Level API |