The former returns a Variant (of VarType String) and the latter returns a true String.
Due to Visual Basic's implicit type conversion this rarely makes any difference at all but there is a (minute) speed penalty for using Hex() and then coercing it into a String.
HTH,
Duncan
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd http://www.merrioncomputing.com
Bookmarks