CFLConvertRGBAtoHEX Procedure

  • 2 minutes to read

Codeunit CFL Color Convert Mgt.

Converts RGBA color values to HEX format (discarding the alpha channel).

Signature

CFLConvertRGBAtoHEX(R: integer; G: integer; B: integer; A: decimal) Hex: text

Parameters

R integer

Red component (0-255).

G integer

Green component (0-255).

B integer

Blue component (0-255).

A decimal

Alpha (opacity) component (0.0-1.0, validated but not used in output).

Returns

text

The HEX color code without alpha (e.g., '#RRGGBB').