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

Note: see also PRINT, DUMP, PRINTERDIALOG, TAB(n)