Done BTM import

rconn

Administrator
Staff member
May 14, 2008
12,171
141
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.

154563c8030911c65fa0d14cfee152b2
Tim Butterfield on February 05, 2011 12:17
 
  • Like
Reactions: fromano
Aug 3, 2016
376
9
Netherlands
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