` 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 May 7, 2024, 6:39 am
This article has been viewed/printed 35127 times.