Sorry for the question, but I'm VB beginner ;-}
What is the/Is there a difference between hex and hex$ statement?
Printable View
Sorry for the question, but I'm VB beginner ;-}
What is the/Is there a difference between hex and hex$ statement?
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