$chain directive

The $chain directive continues FlashBASIC or BASIC compilation in a different source item.


 $chain {file.ref} item-ID


When file.ref is omitted, the current file is assumed.

There is no limit to the number of $chain directives, but any statement after a $chain directive is ignored.

Note: When statements are accessed with the $chain directive, the corresponding source lines are not visible from the FlashBASIC or BASIC Debugger.


 bp myprog
 003 equ bell to char(7)
 004 equ am to char(254), vm to char(253), svm to char(252)
 005 open "cust" to customer.file
 006 $chain prog
 bp prog
 002 read item1 from customer.file,"01234" else print bell