< Futurebasic < Language < Reference

ON LPRINT

Statement

(+) Appearance (+) Standard Console

Syntax

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

Description

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

HANDLEEVENTS; MENU function

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.