高=(Integer And &H7F00)Or(((Integer And &H8000)<>0)And &H80)
低=Integer And &HFF

解决方案 »

  1.   

    写错了:
    高=((Integer And &H7F00)\&H100)Or(((Integer And &H8000)<>0)And &H80)
      

  2.   

    Sub temp(ByVal a As Byte)
       Dim a As String
       Dim i1 As String, i2 As String
       Dim u As Integer
       i1 = Left(Str(a), 4)        '高字节
       i2 = Right(Str(a), 4)       '低字节
       MsgBox i1
       MsgBox i2
    End Sub
      

  3.   

    你的问题要看是针对于多少位的而操作。
    这样吧,我以十六位为便给你说明
    比如0110101010101010
    这里的前八位就称为高字节。
    而底八位就称为低字节了。
    在这种操作下1byte=8bit
    要把高低字节部分分解出来要用到汇编的左移,或右移。
    其实我都是很多年前年学的了可能老化了,也不太清楚具体操作。
    希望能给你一点提示