how do i do that?
Try this VB Code: dim NumberToConvert as integer dim NumberAsHex as string NumberToConvert = 20 'Set this to the number you want to convert to hex NumberAsHex = Hex(NumberToConvert)
dim NumberToConvert as integer dim NumberAsHex as string NumberToConvert = 20 'Set this to the number you want to convert to hex NumberAsHex = Hex(NumberToConvert)
Even simplier, use the ToString() method, and supply a format string arg: Code: MessageBox.Show(NumberToConvert.ToString("X"))
MessageBox.Show(NumberToConvert.ToString("X"))
Forum Rules