Editing Script (CMS) Files
The primary use of the CM Editor is the editing of CMS script files.
When editing a Script, (CMS) file the editor looks like this:
Error Message Box
There is an Error Message box at the bottom of the editing area. This is
invisible except when you use the Check Script button. At the end of the
check it will pop up to report the status of the script check operation.
If an error was encountered, the message will be in yellow and will
tell you what caused it to detect the error. The text cursor will be
positioned in the edit screen at the point where the error was detected.
The error messages are generally fairly explicit and the actual error in the
script is generally at (or just before) the cursor position.
If the check is successful, the message will appear in green text and
tell you how much of the available program space has been used. The line
will say something like:
Script Compiled Okay! P: 79/6144 K: 12/1024
The value following the "P:" indicates how many of the available scripting
location your script is currently using and how many total locations there
are. In the above, it's saying that the script is using 79 of 6144 available
locations.
The value following the "K:" indicates how many of the available constant
locations have been used. Constants are generated when you write a script
line like "cms.a1 = 10;". A constant of 100 is created automatically. Also,
CMS itself generates constants for its internal use in certain functions.
The "K:" value is just showing you how many constants the script
has generated out of the 1024 available locations.
Whether you get an error or the script compiles okay, the Error Message Box
will disappear the first time you click the mouse on the Editor screen.