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

CitectColourToPackedRGB

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

Syntax

CitectColourToPackedRGB(nCitectColor)

nCitectColor:

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

Return Value

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

Related Functions

PackedRGBToCitectColour

See Also

Color Functions

 

Published June 2018