` 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 23, 2024, 4:15 pm
This article has been viewed/printed 35352 times.