Hex Function

Top  Previous  Next

 

Function:

Converts unsigned 16-bit numeric value (word) into its HEX string representation.

Syntax:

hex(num as integer) as string

See Also:

str, lstr, stri, lstri, bin, lbin, lhex, val, lval

 


Part

Description

num

Value to convert.

Details

Standard "&h" prefix is added at the beginning of the string.

Examples

 

dim s as string

 

s = hex(34) 'result will be '&h22'