Futurebasic/Language/Reference/on lprint

ON LPRINTEdit

StatementEdit

(+) Appearance (+) Standard Console

SyntaxEdit

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

DescriptionEdit

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 AlsoEdit

HANDLEEVENTS; MENU function