Liberty BASIC Help Online |
LPRINT
LPRINT expr
Description:
This statement is used to send data to the default printer (as determined by the Windows Print Manager). A series of expressions can follow LPRINT (there does not need to be any expression at all), each separated by a semicolon. Each expression is sent in sequence. Printing can be formatted into columns with the TAB(n) function. When you are finished sending data to the printer, you should commit the print job by using the DUMP statement. Liberty BASIC will eventually send your print job, but DUMP forces the job to finish.
Usage:
lprint "hello world" 'This prints hello world
dump
lprint "hello "; 'This also prints hello world
lprint "world"
dump
age = 23
lprint "Ed is "; age; " years old"
'This prints Ed is 23 years old
dump
Copyright (C) 2003 Shoptalk Systems
Liberty BASIC - http://www.libertybasic.com/