HEX$
(Function)
Obtains a value converted from a decimal to a hexadecimal number as a character string.
HEX$ (<Expression>)
This statement converts the designated value in <Expression> from a decimal number to a hexadecimal number and converts the value to a character string.
If an argument is not an integer, the argument is rounded down to an integer which does not exceed the value prior to conversion.
DIM li1 As Integer
|
|
DEFSTR ls1, ls2
|
|
ls1 = HEX$(20)
|
'Converts 20 to a hexadecimal number and assigns it to ls1.
|
ls2 = HEX$(li1)
|
'Converts li1 to a hexadecimal number and assigns it to ls2.
|