- Aug
- 2,293
- 111
From the help file;
It would be great if I could use GOSUB to call a subroutine that is located in a LIBRARY
The only way I can do it now is to take the subroutines that I have in a .BTM, and separate them into individual LIBRARY functions, so that they can be called from a .BTM
Joe
You can call a subroutine in another file by specifying filename (the name must be enclosed in double quotes, and the file cannot have been compressed with BATCOMP). This allows you to create libraries of subroutines, without having to duplicate them in each batch file. For example:Code:gosub "c:\library\batlib.btm" Evaluate [%1 %2 %3]
It would be great if I could use GOSUB to call a subroutine that is located in a LIBRARY
The only way I can do it now is to take the subroutines that I have in a .BTM, and separate them into individual LIBRARY functions, so that they can be called from a .BTM
Joe