BASIC stamp manual v2.2
3: Using the BASIC Stamp Editor
BASIC Stamp Syntax and Reference Manual 2.2 • www.parallax.com • Page 69
To create a project consisting of multiple files, follow these steps:
1. Create the first file in the editor and save it (we'll call it
Sample.bsx). This will be the program that is downloaded into
program slot 0.
2. Create at least one other file in the editor and save it also (we'll call
it NextProgram.bsx).
Note: At this point the editor tabs will be:
0:Sample.bsx and 0:NextProgram.bsx.
indicating that there are two unrelated files open "Sample.bsx" and
"NextProgram.bsx" and each will be downloaded into program slot 0.
3. Go back to the first program and enter or modify the $STAMP
directive using the project format. Use "NextProgram" as the File2
argument. For example:
' {$STAMP BS2sx, NextProgram.bsx}
4. Then tokenize the code by pressing F7 or selecting Run Check
Syntax from the menu.
At this point, the BASIC Stamp Editor will see the $STAMP directive
and realize that this file (Sample.bsx) is the first file in a project and
that the second file should be NextProgram.bsx. It will then search for
the file on the hard drive (to verify its path is correct), will see that it is
already loaded, and then will change the editor tabs to indicate the
project relationship. At this point the editor tabs will be:
0:Sample.bsx and [Sample] 1:NextProgram.bsx.
indicating that there are two related files open; "Sample.bsx" and
"NextProgram.bsx". NextProgram.bsx belongs to the "Sample" project
and it will be downloaded into program slot 1 and Sample.bsx will be
downloaded into program slot 0.
EASY STEPS TO CREATING MULTI-FILE
PROJECTS.