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 <steve@cco.de> wrote in message news:38bc20aa@news.devx.com...
>
> I know to convert a dec.number to a hex number, but how does it
> work vice versa?
>
> thx webster