Function Windows API Class

LOBYTE

"Low Byte" Return the low-order byte of an Integer value. Return the Byte value whose in-memory representation is the same as the right-most, least-significant-byte of Integer value vValue.

Signature (Visual Basic / VBA)

Public Function LOBYTE( _
    ByVal vValue As Integer _
    ) As Byte

Code Example

    LOBYTE(513) = 1
    LOBYTE(258) = 2
    LOBYTE(-2) = 254
    LOBYTE(-257) = 255

Notes & Version History

Note Use the CoerceTwoBytesToInteger function to reconstruct an Integer from two Byte values.
Note Similar to but faster than using the MakeInteger and CoerceToByte functions.