INIFile: SetValue

SetValue

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



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

Parameters

Section
[ByVal] String. The INI section within the file to set the value.
Key
[ByVal] 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 cObject interface or an exception will be thrown. All other datatypes will be converted to their normal string value.

See Also

Project VBCorLib Overview Class INIFile Overview INIFile Properties INIFile Methods IObject ToString