VBspeed / Bits / LoByte
VBspeed © 2000-10, updated: 02-Dec-2001
LoByte


Function LoByte
Returns the LoByte (the least significant byte) from a 2-byte Word (aka Integer).
See also HiByte.
Code
LoByte01
Public Function LoByte01(ByVal Word As Integer) As Byte
' by Donald, donald@xbeat.net, 20011202
  LoByte01 = Word And &HFF
End Function
LoByte02
Public Function LoByte02(ByVal Word As Integer) As Byte
' by Donald, donald@xbeat.net, 20011202
  CopyMemory LoByte02, Word, 1
End Function
Calls
1bRet = LoByte(&H1234)
Charts
 VB5 Charts
CodeAuthorDopingNotes
LoByte01 Donald  
LoByte02 DonaldAPI 
Call 1
11.000.049Ás
28.030.392Ás
 VB6 Charts
CodeAuthorDopingNotes
LoByte01 Donald  
LoByte02 DonaldAPI 
Call 1
11.000.049Ás
28.470.414Ás
Conclusions
LoByte02: say no to dope!
Got comments? How to read all those numbers

top




VBspeed © 2000-10 by Donald Lessau