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.

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

Examples<br />

In the following example, the HEADING statement sends a heading to print file 3:<br />

“current page number Shareholders Report current date”.<br />

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

ON expr Directs UniData to send output to print file expr. As many as 31 print files<br />

can be active at a time. The print files can have identifiers of 0–254.<br />

str.expr Specifies a string to print at the top of each report page. You can use special<br />

characters, such as unmatched single and double quotation marks, in<br />

str.expr.<br />

'option' option must be enclosed in single quotation marks. You can place option(s)<br />

anywhere in the heading expression. option can be any of the following:<br />

ASCII code – Passes code controlling paging characteristics.<br />

P or S – Prints current page number.<br />

N – Suppresses the pagination prompt after each page.<br />

L – Advances one line. Used for multiline headings.<br />

D – Prints date in MM-DD-YY format.<br />

T – Prints time/date in MM-DD-YY HH:MM:SS format.<br />

C – Centers the heading text.<br />

G – Forces the line to fill the width of the page.<br />

W – Causes a page to fill completely before breaking and printing the<br />

heading when the HEADING statement is first encountered. If you do not<br />

specify W, UniData creates a new page break when it first encounters the<br />

HEADING statement.<br />

HEADING Parameters<br />

HEADING ON 3 "'P' Shareholders Report 'D'"<br />

In the next example, the HEADING statement prints the current page number, and<br />

the current date and time, on the top of the default print device. The N code causes<br />

the report to print continuously, not requiring a carriage return after each page.<br />

HEADING "'PTN'"

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

Saved successfully!

Ooh no, something went wrong!