
7. Building SPEL+ Applications
7.3 Editing Programs
Before you can edit a program, it must be in the current project and opened in a program
editor window. When you first create a new project, this is done for you automatically.
You can open several program editors during one session.
To open a program for editing
1. Select Open from the File Menu.
2. Select the file(s) you want to open.
3. Choose OK to open the file.
7.3.1 Program rules
A program contain one or more SPEL
+
function definitions.
Lines can be blank. You can insert any number of blank lines to separate subroutines and
functions, if desired.
The maximum length for each line is 200 characters, including the line number, if used.
The maximum line number is 32767. You will get an error if you try to run a program
with a line number that is too large.
7.3.2 Typing in program code
Each line can optionally start with a line number.
You can enter program statements in upper or lower case. Whenever you leave a line that
has been changed, the line will be formatted. SPEL
+
keywords are case formatted and
spaces are inserted around operators and after semi-colons and commas.
Consider using mixed case or lower case for variables and function names instead of all
CAPs. This will make your code easier to read.
Use indentation for statements within loops. The Auto Indent feature automatically
moves the cursor under the start of the previous line. It also indents lines after If, Else, For,
Select, Case, and While statements.
For i = 1 To 10
Jump P(i)
Jump P0
Next i
Use the Auto End Construct feature to automatically add the end construct statement.
For example, when you enter a For statement and press Enter, a Next statement is
automatically created with an indented blank line above it.
192 EPSON RC+ 5.0 (Ver.5.4) User's Guide Rev.4
Comentários a estes Manuais