Hex$

Takes two parameters, SourceValue, Width

Description:

Return the binary representation of any value. The optional second parameter of Width may specify the number of digits to output, with left padded zeros.

Example:

[New] AsHex = Hex$ 255 'Results in FF
[New] AsHex32Bit = Hex$ 255, 8 'Results in 000000FF