DTX Function

Converts a decimal value to its hexadecimal equivalent.

Syntax

DTX(expression)

Syntax Elements

expression is any valid DataBasic expression.

Only the characters 0-9 are valid. Conversion ceases at the first invalid character.

Return Value

Returns a string containing the hexadecimal equivalent of expression.

See Also

XTD, OCONV, FMT.

Example

HX = DTX(12139)

assigns the string "2F6B" (the hexadecimal equivalent of the decimal value 12139) to the variable HX.