|Liberty BASIC Help Online
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.
lprint "hello world" 'This prints hello world
lprint "hello "; 'This also prints hello world
age = 23
lprint "Ed is "; age; " years old"
'This prints Ed is 23 years old
Copyright (C) 2003 Shoptalk Systems
Liberty BASIC - http://www.libertybasic.com/