Dizzy
04-24-2008, 10:16 PM
Hello again,
I'm modifying some code where I need to store the value from a byte into a long. I suppose I could do this with shifts and the like but is there a simpler way? I've tried for instance: LONG[v126] := BYTE[packet1]
I can't tell if that works or not.. according to my test program it doesn't haha. Is there an easier cast or a simple trick that anyone knows who has run into this?
Thanks,
D.
I'm modifying some code where I need to store the value from a byte into a long. I suppose I could do this with shifts and the like but is there a simpler way? I've tried for instance: LONG[v126] := BYTE[packet1]
I can't tell if that works or not.. according to my test program it doesn't haha. Is there an easier cast or a simple trick that anyone knows who has run into this?
Thanks,
D.