QBColor Function

Language Items List

Definition:

Returns the RGB color code that corresponds to a color number used by other versions of Basic.

Syntax:

QBColor (color)


Syntax Description


color Integer between 0-15, inclusive

Details:

The integer value of color corresponds to the color values used by other versions of BASIC. The returned value represents the long integer RGB code used by Phoenix, such as 00 for black, or 8388608 for blue. This long integer value can be used to set the color properties of an object.

The following table shows the valid settings for the color argument and their corresponding values of red, green, and blue that are used to set the desired colors in Phoenix:


# - Color # - Color


0 - Black 8 - Gray

1 - Blue 9 - Light Blue

2 - Green 10 - Light Green

3 - Cyan 11 - Light Cyan

4 - Red 12 - Light Red

5 - Magenta 13 - Light Magenta

6 - Yellow 14 - Light Yellow

7 - White 15 - Bright White

See Also:

RGB Function