Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Calling Library Files

Oct
364
17
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
 
Back
Top
[FOX] Ultimate Translator
Translate