PreviousNextIndex

COLOR statement

Indicates the video attribute or color for normal display or for data entry.

Note: Does not apply to SpeedScript programming.
Syntax

COLOR [ DISPLAY ] color-phrase [ PROMPT color-phrase ] 
       { field ... } { [ frame-phrase ] } 

COLOR PROMPT color-phrase  
      { field ... } { [ frame-phrase ] } 

DISPLAY
PROMPT
color-phrase
field
frame-phrase
Example

This procedure highlights the item number and on-hand fields for items with an on-hand value less than 50. The variable hilite holds the video attribute (color) for highlighting. In this case, the system uses whatever attribute is used for the message area (such as reverse video, bright, or a color).

r-color.p
DEFINE VARIABLE hilite AS CHARACTER NO-UNDO INITIAL "messages". 
/* Use standard messages attribute to highlight OnHand less than 50 */ 
FOR EACH Item NO-LOCK: 
  DISPLAY Item.ItemNum Item.ItemName Item.OnHand WITH ATTR-SPACE. 
  IF Item.OnHand < 50 THEN 
    COLOR DISPLAY VALUE(hilite) Item.ItemNum Item.OnHand. 
END. 

Notes
See also

COLOR phrase, DISPLAY statement, Frame phrase


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex