UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

UniData SQL SELECT – For information, see the UniData SQL Commands Reference. 1-298 UniBasic Commands Reference

GETPTR Syntax GETPTR(unit.no) Description The UniBasic GETPTR function returns a string variable containing the values of the current printer settings for the unit.no specified. Tip: GETPTR can store the values associated with a print unit so those values can be reset to their initial values at the end of a process. GETPTR Function Return Values The GETPTR function returns a string containing the same set of values as specified in the ECL SETPTR function, including the print unit and the options. The following table describes these values. Return Description unit The number assigned to a given printer through UniData, from 0 through 255. (The default is 0.) width The number of characters per line, from 0 to 256 characters. length The number of lines per page, from 1 to 32,767 lines. topmargin The number of lines to leave blank at the top of each page, from 0 to 25. bottommargin The number of lines to leave blank at the bottom of each page, from 0 to 25. mode Destination of output. For mode values, see SETPTR in the UniData Commands Reference. options Print options such as BANNER, COPIES, NHEAD, and FORM. For option values, see SETPTR in the UniData Commands Reference. GETPTR Function Return Values 1-299

GETPTR<br />

Syntax<br />

GETPTR(unit.no)<br />

Description<br />

The <strong>UniBasic</strong> GETPTR function returns a string variable containing the values of<br />

the current printer settings for the unit.no specified.<br />

Tip: GETPTR can store the values associated with a print unit so those values can be<br />

reset to their initial values at the end of a process.<br />

GETPTR Function Return Values<br />

The GETPTR function returns a string containing the same set of values as specified<br />

in the ECL SETPTR function, including the print unit and the options. The following<br />

table describes these values.<br />

Return Description<br />

unit The number assigned to a given printer through UniData, from 0 through<br />

255. (The default is 0.)<br />

width The number of characters per line, from 0 to 256 characters.<br />

length The number of lines per page, from 1 to 32,767 lines.<br />

topmargin The number of lines to leave blank at the top of each page, from 0 to 25.<br />

bottommargin The number of lines to leave blank at the bottom of each page, from 0 to<br />

25.<br />

mode Destination of output. For mode values, see SETPTR in the UniData<br />

<strong>Commands</strong> <strong>Reference</strong>.<br />

options Print options such as BANNER, COPIES, NHEAD, and FORM. For<br />

option values, see SETPTR in the UniData <strong>Commands</strong> <strong>Reference</strong>.<br />

GETPTR Function Return Values<br />

1-299

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

Saved successfully!

Ooh no, something went wrong!