Description

Returns the RGB (Red, Green, Blue) color value

Syntax

retval = RGB (red, green, blue)

Parameters

The RGB function has the following parameters:

ParameterDescription
redThe red value (0 to 255)
greenThe green value (0 to 255)
blueThe blue value (0 to 255)

Returns

Returns the RGB color value that can be used for color-related operations.

See Also

BACKCOLOR propertyFORECOLOR propertyGRADIENTSTYLE property

Example

* Set the background color of a window to yellow (RGB(255,255,0))
declare subroutine set_property
declare function RGB
prevBackColor = Set_Property(@window,'BACKCOLOR',RGB(255,255,0))
  • No labels