30 rem $include: 'r10'The second example uses the $include metacommand in a remark beginning with a single quote. The included file is named proc.a:
80 ' $include: 'proc.a'A convenient way to share common areas between programs is to place common declarations and the necessary dim statements in a single file; putting the $include metacommand in both programs will make this file available to both programs. For example, the BASIC source program prog1.b might contain
10 rem $include: 'common.b' . . . 100 chain "prog2"where the source for "prog2" is
10 rem $include: 'common.b' . . . 100 chain "prog1"and "common.b" contains
11 dim a$(100) 12 common i,j,k,a$()
from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber