R
Richard.Kelters
Guest
That's because OpenEdge byte order is Little-endian and you want Big-endian. You could do this to sove that: DEFINE VARIABLE rw AS MEMPTR NO-UNDO. DEFINE VARIABLE it AS INTEGER NO-UNDO. DEFINE VARIABLE ch AS CHARACTER NO-UNDO. SET-BYTE-ORDER( rw ) = 2. SET-SIZE(rw) = 4. it = 705. PUT-LONG(rw,1) = it. ch = HEX-ENCODE(rw). MESSAGE ch VIEW-AS ALERT-BOX INFO BUTTONS OK.
Continue reading...
Continue reading...