Skip to content

LPRINT AND LPRINT USING

Implementation Note

⚠️ Not Implemented: This feature requires line printer hardware and is not implemented in this Python-based interpreter.

Status: Statement is parsed but produces no output

Why Not: Line printers are obsolete hardware. Modern systems use different printing paradigms (print spooling, PDF generation, etc.).

Recommended Alternative: Use PRINT to output to console or PRINT# to output to a file, then print the file using your operating system's print facilities.

Historical Documentation: The content below is preserved from the original MBASIC 5.21 manual for reference.


Syntax

LPRINT [<list of expressions>]
LPRINT USING <string exp>;<list of expressions>

Versions: Extended, Disk

Purpose

To print data at the line printer.

Remarks

LPRINT works exactly like the PRINT statement except that output goes to the line printer instead of the screen. LPRINT USING works exactly like PRINT USING except output goes to the line printer.

Example

10 LPRINT "Sales Report for "; DATE$
20 LPRINT
30 LPRINT "Item", "Quantity", "Price"
40 LPRINT USING "##: $$###.##"; ITEM, PRICE

See Also

  • PRINT - To output data to the screen
  • PRINT USING - Formatted output to the screen
  • PRINT# - To write data to a sequential disk file
  • WIDTH - To set the output line width
  • LPOS - Returns the current position of the line printer print head
  • POS - Returns the current cursor position