<cAppConfig>.GetKey

<< Click to Display Table of Contents >>

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

<cAppConfig>.GetKey

 

Description

 

Return a configuration node data giving configuration node sequence.

 

Syntax

 

Syntax

 

sKeyValue = <cAppConfig>.GetKey(sNode)[.Modifier[.Modifier]...]

 

Returns

 

String

 

Parameters

 

Name

Type

Optional

Meaning

sNode

String

No

configuration node sequence

Modifier


Yes

Nested modifiers can be specified to perform special actions.

Use one or more of the following modifiers:
 

Boolean
Will force return value to be a numeric boolean 0 (zero) or 1 (one) trying to interpret original value. For example if value stored in AppConfig file is %TRUE or TRUE or a numeric value > 0 then return value will be 1
 

ucase
Will force return value to be upper case string

 

lcase
Will force return value to be lower case string
 

IsPath
Force KeyValue to be considered as a local or UNC file path.
Will check returned keyValue will ends with a \
If not, it will be added at the right most before returning KeyValue
 

 

Remarks

 

Restrictions

 

See also

 

Examples

 

See cAppConfig example