Chuck Roberts wrote: > I was wondering if anyone had a routine to convert from Hex to Decimal (Long) in Visual Basic? Hiya Chuck, Here's one way to do it: dim strHexString as string dim lngResult as long strHexString = "CAFE" lngResult = clng("&h0" & strHexString ) msgbox(lngResult) Just make sure you use "&h0" instead of just "&h" to prevent a type mismatch error if the string is empty. Best regards, Ken Pergola -- 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