Futurebasic/Language/Reference/on lprint

From Wikibooks, open books for an open world
Jump to navigation Jump to search

ON LPRINT[edit | edit source]

Statement[edit | edit source]

(+) Appearance (+) Standard Console

Syntax[edit | edit source]

ON LPRINT {FN userFunction|GOSUB{lineNumber|"stmtLabel"}}

Description[edit | edit source]

This statement designates a particular function or subroutine as an idler routine to be called by the printer driver during printing. The actual number of times that this function is called depends on the driver and the hardware.

You may use the ON LPRINT vector to rotate through a series of cursors, check for a Command-Period key press, or update the status of a print job.

Note:
If you use the ON LPRINT FN userFunction syntax, then userFunction must refer to a function which was defined or prototyped at an earlier location in the source code.

See Also[edit | edit source]

HANDLEEVENTS; MENU function