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

INI_GetKey

Previous pageReturn to chapter overviewNext page

 

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

No

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

 

Remarks

 

Restrictions

 

See also

 

INI_SetKey

 

Examples

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com