11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PROCWRITE<br />

Syntax<br />

PROCWRITE expr<br />

Description<br />

The <strong>UniBasic</strong> PROCWRITE command writes data to the primary input buffer of the<br />

calling Proc. PROCWRITE overlays any data in the primary input buffer with the<br />

new data in PROCWRITE.<br />

Example<br />

In the following example, the program segment writes the contents of ANSWER to<br />

the primary input buffer:<br />

1-587 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

PRINT "SEND RESULTS TO THE PRINTER? (Y OR N)"<br />

INPUT ANSWER, Y<br />

IF ANSWER = "Y" THEN<br />

PRINTER ON<br />

...<br />

END<br />

PROCWRITE ANSWER<br />

Note: Another example is provided with PROCREAD.<br />

Related Command<br />

<strong>UniBasic</strong><br />

PROCREAD

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

Saved successfully!

Ooh no, something went wrong!