IniFile: SetValue

SetValue

Sets a key-value pair within a section of an INI file.



 Public Sub SetValue(
	  ByRef Section As String,
	  ByRef Key As String,
	  ByRef Value As Variant )

Parameters

Section
[ByRef] String. The INI section within the file to set the value.
Key
[ByRef] String. The name of the value to be set.
Value
[ByRef] Variant. The value to be set in the INI file.

Remarks

If an object is passed in, then it must implement the IObject interface or an exception will be thrown. All other datatypes will be converted to their normal string value.

See Also

Project CorLib Overview

Class IniFile Overview