Using the BASIC Stamp Editor
Page 38
•
BASIC Stamp Programming Manual 2.0b
•
www.parallaxinc.com
‘ { $STAMP BS2e, file2, file3, …, file8 }
Use this form of the STAMP directive if a project, consisting of multiple
files, is desired. This directive must be entered into the first program (to
be downloaded into program slot 0) and not in any of the other files in the
project. The file2, file3, etc. items should be the actual name (and
optionally the path) of the other files in the project. File2 refers to the
program that should be downloaded into program slot 1, file3 is the
program that should be downloaded into program slot 2, etc. If no path is
given, the path of program 0 (the program in which the STAMP directive
is entered) is used.
Up to seven filenames can be included, bringing the total to eight files in
the project all together. Upon tokenizing, running or viewing program 0
in the Memory Map, the editor will read the STAMP directive, determine
if the indicated files exist, will load them if necessary and change their
captions to indicate the project they belong to and their associated
program number. After the directive is tokenized properly, and all
associated files are labeled properly, tokenizing, running or viewing any
program in the Memory Map will result in that program’s entire project
being tokenized, downloaded or viewed.
When a file that is part of a BS2SX project is closed, the entire project (all
the associated files) will be closed as well. When program #0 of a project is
opened from diskette, the entire project will be loaded as well.
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.
E
ASY STEPS FOR CREATING A
MULTI
-
FILE PROJECT
.
Summary of Contents for BASIC Stamp 2e
Page 1: ...BASIC Stamp Programming Manual Version 2 0c...
Page 34: ...Quick Start Guide Page 32 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 340: ...ASCII Chart Page 338 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 342: ...Reserved Words Page 340 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 346: ...Conversion Formatters Page 344 BASIC Stamp Programming Manual 2 0b www parallaxinc com...