LOTUSSCRIPT LANGUAGE


Hex function
Example

Return the hexadecimal representation of a number as a string.

Syntax

Hex[$] ( numExpr )

Elements

numExpr


Return value

Hex returns a Variant of DataType 8 (String), and Hex$ returns a String.

Return values will only include the characters 0 - 9 and A - F, inclusive. The maximum length of the return value is eight characters.

Usage

If the data type of numExpr is not Integer or Long, LotusScript attempts to convert it to a Long. If it cannot be converted, an error occurs.

Example
See Also