Skip to content
Andrew Owen edited this page May 30, 2023 · 2 revisions

LIST


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.

Notes

  • In Microsoft BASIC, LIST will not show line numbers 65531 to 65535 inclusive.
  • SE Basic IV's line range is currently [0 to 16383].
  • There is no LLIST command. Instead, LIST can be directed to the printer stream using LIST #.

Parameters

  • line_number_0 and line_number_1 are 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_num is a valid stream indicating the file to list to.

Errors

  • A line number is greater than 65529: Syntax error.
  • file_num has a string value: Type mismatch.

Welcome to the SE BASIC wiki


  • Press RETURN to return to this menu.
  • Enter the name of a TOPIC to display it.
  • Enter EXIT to return to BASIC.

Choose from the following topics:

  1. Quick start guide: QUICK
  2. User's guide: USER
  3. Configuration guide: CONFIG
  4. Language guide: LANGUAGE
  5. Language reference: BASIC
  6. Technical reference: TECH
  7. Developer's guide: DEV
  8. Acknowledgemets: CREDITS
  9. Licenses: LICENSE
Clone this wiki locally