Calling Library Files

Oct 18, 2009
185
7
#1
Here's a simple way to use library files. Add this near the start of the file:

Set LibFile=C:\Program Files\JPSoft\Library.btm
ALIAS LIBRARY=GOSUB "%LibFile" %2$​


That basically does the following:

GOSUB "C:\Program Files\JPSoft\Library.btm" Subrou_Name param_2 param_3 param_4​

Now, you call a routine in the Library.btm file exactly the same as you would call a routine in the current file, except that instead of GOSUB you use LIBRARY

If routine DOUBLE is in the current file:

GOSUB DOUBLE 25

If the routine is in the Library.btm file:

LIBRARY DOUBLE 25