11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PRINTER CLOSE<br />

Syntax<br />

PRINTER CLOSE [ON num]<br />

Description<br />

The <strong>UniBasic</strong> PRINTER CLOSE command sends data stored in either a print file<br />

or a print buffer to the print queue. The ON clause does not physically close the print<br />

file. Instead, it sends its contents to a print buffer, leaving the file empty. Then you<br />

can send additional data to the same print file to begin a new set of data to be printed.<br />

As many as 31 print files can be open at the same time. The PRINTER CLOSE<br />

statement does not generate a new line at the end of a page. <strong>UniBasic</strong> is in control of<br />

page feeds or generating new line equivalents.<br />

Note: Data in a print file is automatically sent to the print queue if the program ends<br />

or issues a PRINTER CLOSE statement.<br />

Example<br />

In the following example, the program statement sends the current contents of print<br />

file 5 to the print queue:<br />

PRINTER CLOSE ON 5<br />

Related Command<br />

UniData<br />

SETPTR – For information, see the UniData <strong>Commands</strong> <strong>Reference</strong>.<br />

PRINTER CLOSE 1-578

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!