Navigation:  ThinBASIC Modules > AppConfig > cAppConfig class > <cAppConfig> Methods >

<cAppConfig>.SetKey

Previous pageReturn to chapter overviewNext page

 

Description

 

Change or add a key/value pair into cAppConfig objects during runtime.

Key/value will be present only at runtime.

 

Syntax

 

Syntax

 

<cAppConfig>.SetKey(sKey, sValue)

 

Returns

 

String

 

Parameters

 

Name

Type

Optional

Meaning

sKey

String

No

configuration node sequence

sValue

String

No

value to be associate to the key

 

Remarks

 

Restrictions

 

See also

 

Examples

 

uses "console"

uses "AppConfig"

 

dim MyAppConfig as new cAppConfig

 

MyAppConfig.SetKey("Config\NumberOfLines""1234")

 

printl "Number of lines:", MyAppConfig.GetKey("Config\NumberOfLines")

 

WaitKey