Public Function WritePrivateProfileString( _ Optional ByVal vKeyName As Variant _ , Optional ByVal vValue As Variant _ , Optional ByVal vSectionName As Variant _ , Optional ByVal vFileName As Variant _ ) As Boolean
Assuming Dim estWAPI As New WindowsAPI estWAPI.ProfileFileName = "Sample.Ini" estWAPI.ProfileSectionName = "Sample Section" for example estWAPI.WritePrivateProfileString("Convert From", "5 kilometers") = TrueSee also:
GetPrivateProfileString Function GetPrivateProfileInt Function WriteProfileString Function ProfileFileName Property ProfileSectionName Property WritePrivateProfileString Function (Windows API) SaveSetting Function (Visual Basic 4.0+; not directly related) DeleteSetting Function (Visual Basic 4.0+; not directly related)vKeyName: Name of the String setting whose value is to be written. Function returns Null if vKeyName is Null or cannot be fixed-up to a String.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.