Progress
Language Reference


SCREEN-LINES Function

Interfaces
OS
SpeedScript
All
All
No

Returns the number of lines you can use to display frames. This value omits the space used by the message area and status area.

SYNTAX

SCREEN-LINES 

EXAMPLE

Here, a different number of customer records is displayed depending on the number returned by the SCREEN-LINES function.

r-scrnln.p
DEFINE VARIABLE nbrdown AS INTEGER.

IF SCREEN-LINES > 21
THEN nbrdown = 7.
ELSE nbrdown = 6.

FOR EACH customer WITH nbrdown DOWN:
  DISPLAY cust-num name address city state country.
END. 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095