-
Notifications
You must be signed in to change notification settings - Fork 0
LIST
Andrew Owen edited this page May 30, 2023
·
2 revisions
LIST [# file_num;] [line_number_0][, ][line_number_1]
Prints the program to the screen or a file, starting with line_number_0 up to
and including line_number_1. Also stops program execution and returns control to
the user. In all cases, any further statements in a compound after LIST will be ignored, both in a program and in direct mode.
When listing to the screen, the same control characters are recognised as in the
PRINT statement.
- In Microsoft BASIC,
LISTwill not show line numbers65531to65535inclusive. - SE Basic IV's line range is currently
[0 to 16383]. - There is no
LLISTcommand. Instead,LISTcan be directed to the printer stream usingLIST #.
-
line_number_0andline_number_1are line numbers in the range[0 to 65529]or a.to indicate the last line edited. The line numbers do not need to exist; they specify a range. If the range is empty, nothing is printed. - The string expression
file_numis a valid stream indicating the file to list to.
- A line number is greater than
65529: Syntax error. -
file_numhas a string value: Type mismatch.
- Press
RETURNto return to this menu. - Enter the name of a
TOPICto display it. - Enter
EXITto return to BASIC.
Choose from the following topics: