Click to See Complete Forum and Search --> : hex - hex$ ?


marwic
March 28th, 2001, 01:52 AM
Sorry for the question, but I'm VB beginner ;-}

What is the/Is there a difference between hex and hex$ statement?

Clearcode
March 28th, 2001, 02:10 AM
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