
7-6
Section
Details of BASIC Commands
153
edit
Syntax:
EDIT
(<line number> | . )
Description:
Command. Edits the specified line(s) of the BASIC program.
Allows editing of the BASIC program. If only one line number is specified then the editor will be
in single-line edit mode. Characters can be inserted, deleted, or copied in the specified line and the
cursor can be moved.
When "EDIT." Is input, the most recently displayed line or most recently input line will be
displayed.
It is also possible to edit programs that have been input with the PNAME command.
The following edit keys can be used during edit.
Key
Action
Right Key (
→
)
Moves the cursor to the right. If the cursor is already at the
last position in the line then this key has no effect.
Left Key (
←
)
Moves the cursor to the left. If the cursor is already at the
first position in the line then this key has no effect.
Down Key (
↓
)
Inputs the line currently being edited and displays the next
program line. If the Down Key is pressed when the bottom
line is already displayed, editing is terminated, and the
editor returns to command mode.
Up Key (
↑
)
Inputs the line currently being edited and displays the
previous program line. If the Up Key is pressed when the
top line is already displayed, editing is terminated, and the
editor returns to command mode.
CTRL
+ O
(
I
nsert or
Overwrite)
Toggles the editor between insert and overwrite mode, the
status of insert mode is not shown.
DEL
or
BS
Deletes the character to the left of the cursor, moving
subsequent characters in the buffer to the left. This key has
no effect at the beginning of a line.
RETURN
The carriage return key enters the line currently being
edited to the BASIC program.
When the line number being displayed is changed and the
return key is pressed, a new line will be created with the
new line number.
CTRL
+
X
Quits editing and returns to command mode. If a line is
currently being edited, it will return to its original contents.
Remarks:
Note:
1.
When just the line numbers are edited, the contents of the line before editing are
copied as the contents of the line after editing.
2.
If the specified line number does not exist then an “UNDEFINED LINE NUMBER”
error (code B008) will occur.
Examples:
EDIT 200
This edits line 200 of the active program
See also:
Содержание C200H-ASC11
Страница 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Страница 2: ...iv...
Страница 4: ...vi...