INI_GetKey

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > INI (Text INI Files) >

INI_GetKey

 

Description

 

Retrieves a string from the specified section in an initialization file.

 

Syntax

 

KeyValue = INI_GetKey(IniFileName, SectionName, KeyName [, DefaultValue])

 

Returns

 

String.

 

Parameters

 

Name

Type

Optional

Meaning

IniFileName

String

No

Name of the INI file to load from

SectionName

String

No

Name of the section where KeyName is

KeyName

String

No

Name of the Key

DefaultValue

String

Yes

In case KeyName is not found, DefaultValue value will be returned

 

Remarks

 

Restrictions

 

See also

 

INI_SetKey

 

Examples