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.

PRINT<br />

Syntax<br />

PRINT [ON num.expr] [print.expr]<br />

Description<br />

The <strong>UniBasic</strong> PRINT command prints data on the display terminal or the system<br />

printer, or sends data to a print file.<br />

Separate multiple items in a single PRINT statement with commas or colons. A<br />

comma directs the printer to execute a tab. Tab stops are set to 10 spaces. If you use<br />

a colon to separate statements, UniData concatenates the items.<br />

Unless a PRINT expression ends with a colon, UniData executes a carriage return<br />

after printing the line. If the output from the PRINT statement exceeds the current<br />

page width, it wraps to the next line.<br />

Tip: You can use the <strong>UniBasic</strong> @ function with the PRINT command to place the<br />

cursor and/or direct the terminal to take some action. Execute the ECL REUSE.ROW<br />

command to determines whether a line feed is executed when the <strong>UniBasic</strong> PRINT @<br />

function references column only. For example, PRINT @(10) rather than PRINT<br />

@(3,10).<br />

Note: The PRINT statement interprets two consecutive nonprinting ASCII characters<br />

(such as CHAR(192):CHAR(192)) as one character when displaying data.<br />

To suppress the line feed at the end of displayed text, place a colon at the end of the<br />

PRINT or DISPLAY statement.<br />

PRINT 1-574

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

Saved successfully!

Ooh no, something went wrong!