does C help? int hex2bin (int c1, int c2) { /* converts two nibble chars to only one byte */ c1= ( ( c1 < 0x3a ? c1 & 0x0f : ( c1 & 0x5f ) + 9 - 0x40 ) << 4 ) | ( c2 < 0x3a ? c2 & 0x0f : ( c2 & 0x5f ) + 9 - 0x40 ) ; return c1; } how many hex digits? Francisco Roberts II, Charles K. wrote: >I was wondering if anyone had a routine to convert from Hex to Decimal >(Long) in Visual Basic? > > >Chuck Roberts > >-- >http://www.piclist.com hint: The list server can filter out subtopics >(like ads or off topics) for you. See http://www.piclist.com/#topics > > >. > > > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics