Integer.ToHex

From Xojo Documentation

Method

Integer.ToHex(Optional minimumDigits As Integer) As Text

Supported for all project types and targets.

Converts the integer value to a Text containing its hexadecimal representation.

Sample Code

Convert an Integer value to the hexadecimal text value:

Var i As Integer = 255
Var hex As Text = i.ToHex(4) // hex = "00FF"