1,453
社区成员
发帖
与我相关
我的任务
分享
Private Sub Comm1_OnComm()
Label1.Caption = " 正在接收数据..."
Label1.Refresh
Comm1.RThreshold = 0
Dim slen%, j%, msgvalue%
Dim tmp As Variant
Select Case Comm1.CommEvent
Case comEvReceive
slen = Comm1.InBufferCount
Comm1.InputLen = slen
ReDim bytInput(slen)
tmp = Comm1.Input
bytInput = tmp
receivedata
strData = ""
bytInput = ""
End Select
Comm1.RThreshold = 1
End Sub