Function Windows API Class

LOWORD

"Low Word" Return the low-order word (2 bytes) of a Long (Integer) value. Return the Integer value whose in-memory representation is the same as the right-most, least-significant-word of Long value vValue.

Signature (Visual Basic / VBA)

Public Function LOWORD( _
    ByVal vValue As Long _
    ) As Integer

Code Example

    LOWORD(345) = 345
    LOWORD(65538) = 2
    LOWORD(131073) = 1

Notes & Version History

Note Use the CoerceTwoIntegersToLong function to reconstruct a Long from two Integer values.
Note Similar to but faster than using the MakeLong and CoerceToInteger functions.