Skip to content

WriteString - cIniFile

Writes a string value into an INI file

Type: Procedure

Parameters

Parameter Type Description
sSection String The name of the Section. If the Section doesn't already exist, it will be created.
sKey String The name of the Key. If the Key doesn't already exist, it will be created.
sValue String The data that you want to write into the INI file.

Syntax

Procedure WriteString String sSection String sKey String sValue

Call Example

Send WriteString sSection sKey sValue

Description

The WriteString procedure writes a string value into an INI file. To write a string into an INI file, you must provide the name of the Section and the name of the Key. Before writing a string (or performing any operation on the contents of an INI file) you must set the psFileName property.

To see an example of using WriteString, see the sample in cIniFile

Col 1 Col 2
Note: Caution: if the sValue parameter is NULL or blank (""), the key pointed to by sKey is deleted.