D
dothvader
Is there a way to automatically create a schema.ini file from a text
database in Excel or Access?
database in Excel or Access?
The windows API provides access to read and write ini files. Here are the
declarations. I also have a file that demonstrates how they can be used (it
is a little too involved to post the code...). If you want a copy of the file
just drop me an e-mail... (e-mail address removed)
Public 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.dll" Alias
"WritePrivateProfileStringA" ( _
ByVal lpApplicationName As String, _
ByVal lpKeyName As Any, _
ByVal lpString As Any, _
ByVal lpFileName As String) As Long