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

<cAppConfig>.GetSearchKey

Previous pageReturn to chapter overviewNext page

 

Description

 

Return the base search key currently active

 

Syntax

 

Syntax

 

s = <cAppConfig>.GetSearchKey

 

Returns

 

String

 

Parameters

 

Name

Type

Optional

Meaning





 

 

Remarks

 

To save some typing and allow dynamic loading of keys sets, it is possible to set a base search string that will be added to all successive .GetKey(...) search.

So, for example, adding "Debug" as SearchKey, instead of searching for MyAppConfig.GetKey("Debug\AppData\Author_Name") you cans search for

MyAppConfig.GetKey("AppData\Author_Name") only because thinBasic will add "Debug" in front of "AppData\Author_Name"

 

Restrictions

 

See also

 

Examples

 

See cAppConfig example