Decimal to hex:
myvariable = hex(16)

Hex to Decimal:
myvariable = &H10

VB will make the conversion for you by implying &H(some hex number). The
same goes for octal as well... &O(some octal number)

Chris Ross

webster <> wrote in message
> I know to convert a dec.number to a hex number, but how does it
> work vice versa?
> thx webster