Public Function RotateRightByte(b As Byte, nBit As Byte) As Byte
Dim i As Byte
if nbit=0 then 10
For i = 1 To nBit
b = Fix(b / 2) + (b Mod 2) * &H80
Next
10 RotateRightByte = b
End Function
Private Sub Form_Load()
Dim a As Integer, b As Long
a = &HFFFF
MsgBox a
b = a * &H10000
c = &HFFFF0000
MsgBox b & " = " & c
End
End Sub
Сейчас этот форум просматривают: Google-бот и гости: 9