Access/VBA Library

INI_SetValue

Assigns a value to a specified key.

Syntax

INI_SetValue( index, value )
Parameters
Name Type Description
index String Required. The index of the key in the INI-file (
.).
value String Required. The value to be assignd to the key.
Code
Public Sub INI_SetValue(ByVal index As String, value As String)
    Call WritePrivateProfileString( _
             GetSectionFromIndex(index), _
             GetKeyFromIndex(index), _
             value, _
             INI_Filename())
End Sub

See also

  • WritePrivateProfileString