Welcome!

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

SignUp Now!

Done BTM import

rconn

Administrator
May
13,015
192
Staff member
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
 
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
 
Back
Top