Please take a look at my website for ASCII to HEX conversion code. ( click on floppy disk) Pailoor Bob Blick wrote: > Does anyone have a nice code snippet that takes a byte containing a hex > character (0x30 through 0x39 and 0x41 through 0x46) and converting it to a > plain numeric byte, 0x00 through 0x0F? Everything that comes to mind seems > wasteful and clunky. > > The character coming in may also contain junk that must be filtered out. > > Thanks! > > Happy long weekend if you get one. Cheers, > Bob -- Website : http://business.vsnl.com/chiptech Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Description: Card for Ravi Pailoor Content-Disposition: attachment; filename="vcard.vcf" Content-Transfer-Encoding: 7bit Attachment converted: wonderland:vcard.vcf 1 (TEXT/CSOm) (0000769A)