DavidBonfoey
asked on
How to access individual bytes in Single
I have a single that I want to access each individual byte of. How can I do this?
dim stuff as single
var1 = stuff.byte0
var2 = stuff.byte1
var3 = stuff.byte2
var4 = stuff.byte3
Thanks
dim stuff as single
var1 = stuff.byte0
var2 = stuff.byte1
var3 = stuff.byte2
var4 = stuff.byte3
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!
Works great!
Works great!
Dim sngVar as Single
Dim bytVar() as Byte
bytVar = StrConv(CStr(sngVar),vbFro
Debug.Print bytVar(0)
....