BTM import

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

rconn

Administrator
Staff member
May 14, 2008
10,096
85
#1
BTM import

This would expand on the GOSUB ["filename"] to import all of the defined subroutines of another BTM file. It might be similar to the Tcl 'source' command. The second BTM could be executed in the context of the first and all defined subroutines kept upon returning. They could then be called in the context of the first BTM. Optionally, the imported subroutines could be assigned a "name." prefix to distinguish them from the subroutines in the first BTM.

Tim Butterfield on February 05, 2011 12:17
 
Likes: fromano
#2
I'm not sure if I understand, but I think you can do what you want with an alias:

Code:
alias INCLUDE=`set %3=%1`
Example:
Code:
INCLUDE "c:\temp\My Network Scripts.btm" AS NETWORK
Calling one of your network subroutines:
Code:
gosub %NETWORK% :ResetConnection MyVar