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

INI_SetKey

Previous pageReturn to chapter overviewNext page

 

Description

 

Copies a string into the specified section of an initialization file.

 

Syntax

 

n = INI_SetKey(IniFileName, SectionName, KeyName, Value)

 

Returns

 

Number.

If the function successfully copies the string to the initialization file, the return value is nonzero.

If the function fails, the return value is zero.

 

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

Value

String

No

Value to assign to key

 

Remarks

 

Restrictions

 

See also

 

INI_GetKey

 

Examples

 

 

 

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