Hi,
I'm trying to read/write from an Ini file and I found code that was said to work but when I try to implement it all of the code is highlighted in red and it tells me "Expected: line number or label or statement or end of statement"
If anyone could assist it would be appreciated.
I'm trying to read/write from an Ini file and I found code that was said to work but when I try to implement it all of the code is highlighted in red and it tells me "Expected: line number or label or statement or end of statement"
Code:
Declare Function GetPrivateProfileString Lib "kernel32" _
Alias "GetPrivateProfileStringA" ( _
ByVal lpApplicationName As String, _
ByVal lpKeyName As Any, _
ByVal lpDefault As String, _
ByVal lpReturnedString As String,_
ByVal nSize As Long, _
ByVal lpFileName As String) As Long
Declare Function WritePrivateProfileString& Lib "kernel32" _
Alias "WritePrivateProfileStringA" ( _
ByVal strAppName As String, _
ByVal strKeyName As String, _
ByVal strKeyDefault As String, _
ByVal strFileName As String)