PreviousNextIndex

RGB-VALUE function

Returns an INTEGER value that represents a combination of a red, green, and blue color value. This function allows you to define an arbitrary color, expanding beyond those colors defined in the color table.

Note: Does not apply to SpeedScript programming.
Syntax

RGB-VALUE ( redval , greenval , blueval ) 

redval, greenval, blueval
Example

The following code fragment shows how to set the background color of an ActiveX control:

DEFINE VARIABLE hdlControl AS COM-HANDLE NO-UNDO. 
/* Complete code to get a handle to a control in a control-frame.*/ 
. . . 
hdlControl:BackColor = RGB(128, 0, 256). 

For detailed information on programming ActiveX Controls, see OpenEdge Development: Programming Interfaces manual.

Note

The RGB-VALUE function is generally most useful when it is used with ActiveX Controls.

See also

COLOR-TABLE system handle


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex