Product Logo

MMColor

Create and enhance color elements

Functions

MMColor_DecToHex

NameMMColor_DecToHex
Description

Returns the Hex representation of the Decimal number entered in the “Dec” parameter, optionally with leading-zeros depending on the “NumDigits” parameter.

Return TypeText (HexColor)
FormatMMColor_DecToHex ( Dec ; NumDigits )
Required Parameters
Dec

The Decimal number to convert to Hexidecimal.

Optional Parameters
NumDigits

The minimum number of digits in the returned Hexidecimal number.

Example
Example 1

Returns 80.

MMColor_DecToHex( 128 )