rh232
Dim buf$
Private Sub Command1_Click()
MSComm1.Output = Text1.Text
Text1.Text = ""
End Sub
Private Sub Command2_Click()
buf = MSComm1.Input
If Len(buf) = 0 Then
Text2.Text = "nothing"
Else
Text2.Text = buf
End If
End Sub
Private Sub Command3_Click()
Text1.Text = ""
End Sub
Private Sub Command4_Click()
Text2.Text = ""
End Sub
Private Sub Command5_Click()
MSComm1.PortOpen = False
End
End Sub
Private Sub form_load()
MSComm1.PortOpen = True
End Sub