Hex
Returns a string representing the hexadecimal value of a number.
Syntax
Hex(Val)
Parameter
Val
Type: Long
Numeric value.
(return)
Type: Text
Hexadecimal representation of Val.
Remarks
Val is treated as an unsigned number, so values of -2147483648 to -1 are represented as "80000000" to "FFFFFFFF" respectively. If the current data value is NULL, Val is 0 and the return value is "0".
This function is similar to the Hex function in Visual Basic.
Example
This example uses the Hex function to return the hexadecimal value of 99:
Dim x, y
x = 99
y = Hex(x)
The return value is “63”.
See also