1,453
社区成员




Private Sub Command1_Click()
With MSC
.CommPort = 1
.Settings = "9600,N,8,1"
.InBufferSize = 40
.RThreshold = 17
.InputMode = comInputModeText
.InBufferCount = 0
If Not .PortOpen Then
.PortOpen = True
End If
End With
End Sub
Private Sub MSC_OnComm()
If MSC.CommEvent = comEvReceive Then
Text1.Text = MSC.Input
If Len(Text1.Text) = 17 Then
Text2.Text = Mid(Text1.Text, 7, 2) & "." & Mid(Text1.Text, 9, 2)
End If
End If
End Sub