Cicode Programming Reference > Cicode Function Categories > Color Functions Introduction > CitectColourToPackedRGB

CitectColourToPackedRGB

Converts a CitectSCADA color value into a packed RGB color value that can be understood by an ActiveX object.

Syntax

CitectColorToPackedRGB(nCitectColor)

nCitectColor:

The CitectSCADA color value to be converted into a packed RGB color. CitectSCADAcolors are defined in the labels database, or calculated by the function MakeCitectColour

Return Value

The packed RGB color value - if successful, otherwise an error is returned.

Related Functions

PackedRGBToCitectColour

See Also

Color Functions