Hi Brian,
Use Win32 APIs. Try .INI file format:
GetPrivateProfileStringA Get data
WritePrivateProfileStringA Put data
These Declarations below should get you started. Compare them to the
Microshaft versions.
********************* MAPBASIC WIN32 DECLARAIONS
****************************
Declare Function GetPrivateProfileStringA Lib "kernel32"
(ByVal szSection as String, ByVal szEntry as String, ByVal
szDefault as String,
szDummy as String, ByVal snReturnBuffer as SmallInt, ByVal
szFilename as String) As SmallInt
Declare Function WritePrivateProfileStringA Lib "kernel32"
(ByVal szSection as String, ByVal szEntry as String,
szReturnBuffer as String, ByVal szFilename as String) As
SmallInt
szSection refers to the words inside the [] brackets
szEntry refers to words within a section
szReturnBuffer contains the returned string.
Read everything as strings and then convert them, that appears to work best.
Hope that this helps,
Mark Crompton
-----Original Message-----
From: Brian Upton [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 28, 2000 2:55 PM
To: [EMAIL PROTECTED]
Subject: MI ini or definition file
I am trying to figure out how to use an external file to store definitions
into so that different users can make changes to file without having to
recompile the program
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]