📜  来自 Long Integer 的 vba 低字 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:55.964000             🧑  作者: Mango

代码示例1
'If n is a 4-byte Long Integer, the Low (Left) Word is:
If n And &H8000& Then
      LoWord = n Or &HFFFF0000
Else
    LoWord = n And &HFFFF&
End If

'If n is a 4-byte Long Integer, the High (Right) Word is:
HiWord = (n And &HFFFF0000) \ &H10000