J Trahair
Well-known member
Hi
Are ini files supported by .net? My old VB6 ones write but don't read.
Eg.
mlpAppName = "Path To Database"
mlpKeyName = "Point To"
mlpFileName = mstrAppPath & mstrIniFile
mlpBuffer = Space(255)
mnSize = 255
mnumIniReturn = GetPrivateProfileString(mlpAppName, mlpKeyName, mlpDefault, mlpBuffer, mnSize, mlpFileName)
mlpBuffer = Trim(mlpBuffer)
mdbPath = mlpBuffer
Of course, mstrAppPath & mstrIniFile are both correctly populated.
Thanks
Jonathan
Are ini files supported by .net? My old VB6 ones write but don't read.
Eg.
mlpAppName = "Path To Database"
mlpKeyName = "Point To"
mlpFileName = mstrAppPath & mstrIniFile
mlpBuffer = Space(255)
mnSize = 255
mnumIniReturn = GetPrivateProfileString(mlpAppName, mlpKeyName, mlpDefault, mlpBuffer, mnSize, mlpFileName)
mlpBuffer = Trim(mlpBuffer)
mdbPath = mlpBuffer
Of course, mstrAppPath & mstrIniFile are both correctly populated.
Thanks
Jonathan