Ultra small program for converting lists of things into constant lists for
HiSoft Basic 2, a bit like enums, but const is much nicer :-)
First make a nice list of anything you want to turn into a list of stuff.
This list can contain anything, but make sure it is all valid as variable
names. You do not need to include any nasty '%' signs. I really hate
typing them.
Then run 'constant-ize <filename>' and a few seconds later you will suddenly
have a couple of new files in the same directory.
'<filename>_h.bas' is the real file of usefullness. It contains the list of
constants you want to include in your program. You can then do stuff
without remembering tedious stuff like offsets.
'<filename>_sub.bas' is a quick subroutine that may come in handy. I like
loading a string array with the same contents as the constants so I can
print what it is without doing a million 'if' statements.
_ _ _ _ _ _ | Ferengi Rule of Acquisition #202
|_> |_| |_| |\ | |_ | | | / | |
|_> | \ | | | \| |_ |_ |_| \_ . | The justification for profit is profit.
|
Please email me at: Braneloc@mirex.demon.co.uk
Alternative email: Braneloc@draught.demon.co.uk (DraughtFlow BBS,
01707 328484, free internet email, 16 CD's online, no download limit..)
|