Dim OutData() As Byte
Dim InData() As Byte
Dim Rec As Variant
With MSComm1
.CommPort = 1
If .PortOpen = False Then
.PortOpen = True
End If
.Settings = "9600,N,8,1"
.InputMode = comInputModeBinary
.InputLen = 1
.Output = "A"
Rec = .Input
InData(0) = Rec()'这里改!
End With
Dim InData() As Byte
Dim Rec As Variant
With MSComm1
.CommPort = 1
If .PortOpen = False Then
.PortOpen = True
End If
.Settings = "9600,N,8,1"
.InputMode = comInputModeBinary
.InputLen = 1
.Output = "A"
Rec = .Input
InData(0) = Rec()'这里改!
End With
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货