LPRINT

BASin

LPRINT Line printer PRINT

Statement/Command

LPRINT makes Sinclair-type printers print an item of data in the same way that PRINT causes the item to appear on the screen.

How to use LPRINT

LPRINT may form a statement in a program or a direct command. It is followed by items of data that may be separated by commas, semicolons or apostrophes, for example

60 LPRINT "Number ";x'"Name ";n$,"Age ";a

When output to the printer, the items are printed in the same format as PRINT would cause them to be displayed on the screen. An LPRINT statement or command may also include TAB, certain CHR$ controls, INVERSE and OVER statements and control codes with the same effect as PRINT. An AT statement may also be included, but the line number is ignored, and the item of data printed at the given column position on the same line.

Format

  • LPRINT [TAB (int-num-expr);] [AT int-num-expr, int-num-expr;] [CHR$ (int-num-expr);] [statement;] [num-expr] [string-expr] [;] [,] [']

See also

Chapter 21.