Previous Topic: Use Variables to Represent Screen DataNext Topic: Represent Screen Data


Represent Screen Size

ACL/E variables identify the number of columns on the screen, the number of rows on the screen, and the absolute screen size.

Representing the Number of Columns

The variable &SCRNCOLS represents the number of columns on the screen. For example, if the screen is 80-columns wide, the value of &SCRNCOLS is 80.

Representing the Number of Rows

The variable &SCRNROWS represents the number of rows on the screen. For example, if the screen is 24 rows long, the value of &SCRNROWS is 24.

Representing the Absolute Screen Size

The variable &SCRNSIZE represents the absolute size of the screen; that is, the total number of coordinates or character positions on the screen.

ACL/E determines the absolute screen size, in bytes, by counting each character position on the screen. For example, in an 80-column by 24-row screen, the first row contains coordinates 1 through 80, the second row contains coordinates 81 through 160, and so on, down to row 24, which contains coordinates 1841 through 1920. The value of &SCRNSIZE would be 1920.