Action
Makes a Long from 3 bytest
z% = MakeL3H( byte2, byte1, lo)
z% = MakeL3L( lo, byte1, byte2)
lo:Byte
byte1, byte2:Byte
z%:Integer
MakeL3H and MakeL3L create a 32-bit integer value form three bytes. The high order byte of the long integer is 0.
OpenW 1
Local p%, w%, x%, y%, z%
x% = 10, y% = 20, w% = 150
z% = MakeL3H(w%, x%, y%) // => $00960A14
p% = MakeL3L(w%, x%, y%) // => $00140A96
Print Hex(z%, 8), Hex(p%, 8)
MakeL3L() is the same as RGB().
MakeL2L(), MakeL2H(), MakeL4H(), MakeL4L(), MakeLarge(), MakeLargeHiLo(), MakeLargeLoHi(), MakeLong(), MakeLongHiLo(), MakeLongLoHi(), MakeWord(), MakeWordHiLo(), MakeWordLoHi(), MakeWParam()
{Created by Sjouke Hamstra; Last updated: 12/10/2014 by James Gaite}