Click to See Complete Forum and Search --> : HEX2DEC


July 10th, 2000, 08:19 AM
Hi,
who knows a fast and easy way to convert a hex number into a decimal number.

TH1
July 10th, 2000, 10:02 AM
use VAL but make sure that your number is prefixed by "&H"
ie

dim Hexnumber,decnumber
hexnumber=hex(15)
decnumber=val(hexnumber)
'this will return 0
'but if you do this
hexnumber="&H" & hexnumber
decnumber=val(hexnumber)
'this will return 15



Hope this helps