grabbing the bytes out of a long
Zap-o
Posts: 452
I cant figure out how to grab the bytes out of a long. Certainly I am going about it in the wrong direction.
The idea is that Parts [noparse][[/noparse] 0 ] would be $36 and so on.
Post Edited (Zap-o) : 4/12/2009 3:55:25 PM GMT
[b] Var Long Junk Byte Parts [noparse][[/noparse] 8 ] Main Junk := $36_35_34_33 Parts [noparse][[/noparse] 0 ] := Junk >> 24 Parts [noparse][[/noparse] 1 ] := Junk >> 16 Parts [noparse][[/noparse] 2 ] := Junk >> 8 Parts [noparse][[/noparse] 3 ] := Junk [/b]
The idea is that Parts [noparse][[/noparse] 0 ] would be $36 and so on.
Post Edited (Zap-o) : 4/12/2009 3:55:25 PM GMT
Comments
You have shown me the light, now I understand "bytes and strings " more.
Thank you.