You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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