[progress Communities] [progress Openedge Abl] Forum Post: Re: Integer To Hex

  • Thread starter Thread starter Richard.Kelters
  • Start date Start date
Status
Not open for further replies.
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...
 
Status
Not open for further replies.
Back
Top