` Printed Icetips Article

Icetips Article



Par2: Split out high and low 16 bits in Long
2012-05-16 -- Stamos Fafalios
 
Sneaky but try.

MyGroup    GROUP
    MyLongA    SHORT
    MyLongB    SHORT
END
MyLong LONG,OVER(MyGroup)

That would split the bits.
If you want the actual value of the higher bytes in the Long, it would be
MyLong - MyLongB

Sean Hennessy opins that perhaps a USHORT would be better.



Printed November 21, 2024, 7:11 am
This article has been viewed/printed 35349 times.