You can use the LowWord attribute to query the value of the lower 16 bits of the variable.
Syntax | |
LowWord | |
Return value | |
Type |
Description |
Long |
The value of the lower 16 bits |
Parameter | |
None | |
Note | |
The attribut is read-only. |
Example:
Dim L As Long
L := 65538
MsgBox(L.LowWord)
The output is 2.
See also HighWord