09-15-2007 07:14 AM
09-17-2007 01:29 AM
Option Explicit
Dim sgHexText
sgHexText = "12AB"
MsgBox Eval("&H" & sgHexText)
| Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
09-17-2007 09:30 AM
Hi Lman,
Twigeater's syntax is perfect as usual. I would just like to add that I always call CLng(&h....) to evaluate the hex string and convert it to a number. There may not be much difference under the hood, but it looks aesthetically to me like less of a hack that way.
Greetings,
Brad Turpin
DIAdem Product Support Engineer
National Instruments