Previous Next

SCREEN-LINES function
Returns, as an INTEGER value, the number of lines you can use to display frames. This value omits the space used by the message area and status area.
Note:
Syntax 
 
SCREEN-LINES
Example 
Here, a different number of customer records is displayed depending on the number returned by the SCREEN-LINES function:
 
DEFINE VARIABLE nbrdown AS INTEGER NO-UNDO.
 
nbrdown = IF SCREEN-LINES > 21 THEN 7 ELSE 6.
 
FOR EACH Customer NO-LOCK WITH nbrdown DOWN:
  DISPLAY Customer.CustNum Customer.Name Customer.Address Customer.City
    Customer.State Customer.Country.
END.

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.