You can use the library file (Constants.lib) in you own programs (providing you
abide by the terms of use).
To use it, you must include Constants.lib in your program.
That is:
$use "constants.lib"
You will need to declare the following external variables:
extern Desc[5000] as string
extern cValue[5000] as string
extern cType[5000] as string
extern cSub[5000] as string
extern Description[5000] as string
It is safe (at the moment to reduce the value of 5000 down to 2000).
I chose 5000 because I will be adding in more constants over time.
Desc holds the constant name e.g. BS_LEFT
cValue holds it's corresponding value e.g. 0x00000100
cType holds the type of control it belongs to e.g. BUTTON - note all control types
are uppercase.
cSub not in use at the moment will hold it's sub catagory i.e. STYLE
Description holds the actual description of the constant.
To read in the data, you will need to do this:
DECLARE EXTERN BuildDesc(),int
NoOfDescriptions = BuildDesc()
The BuildDesc() routine is an internal routine of the library file, you need to run it
as above to populate the variables mentioned.
Also, it returns the number of constants, handy if you want to use a loop.