请帮我看看下面这段代码的意思,谢谢啊!!
请大家帮我仔细讲讲下面两段代码的含义,谢谢!
Public Function Word_Byte(S_Data As Long) As Variant
Dim t(2) As Byte
t(0) = CByte(S_Data Mod 256)
t(1) = CByte(S_Data \ 256)
Word_Byte = Array(t(0), t(1))
End Function
Public Function sbyte_word(strg() As Byte, Sit As Variant) As Long
On Error GoTo sberexit
sbyte_word = (strg(Sit) - 48) * 10 + (strg(Sit + 1) - 48)
GoTo sbw_exit
sberexit:
sbyte_word = 0
sbw_exit:
End Function