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.

ASSIGN<br />

Syntax<br />

ASSIGN expr TO SYSTEM(option)<br />

Description<br />

The <strong>UniBasic</strong> ASSIGN command redefines some system-level parameters. The<br />

value in option changes to the value you specify with expr.<br />

Parameters<br />

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

For parameters 2, 3, and 5, expr must be numeric. For parameter 7, expr must be a<br />

string representing a valid terminal type and must be enclosed in quotation marks.<br />

Example<br />

Parameter Description<br />

2 Page width<br />

3 Page length<br />

5 Page number<br />

7 Terminal type<br />

ASSIGN Parameters<br />

In the following example, the program resets the page width to 40, page length to 30,<br />

and terminal type to vt100:<br />

ASSIGN 40 TO SYSTEM(2)<br />

ASSIGN 30 TO SYSTEM(3)<br />

ASSIGN "vt100" TO SYSTEM(7)<br />

ASIN 1-107

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

Saved successfully!

Ooh no, something went wrong!