Leighton21
Technical User
Hi All,
Just a Question?
I have opened a hyperterminal session and then created a vb app with a MSCOMM control.
What I was trying to do was to send data to the hyperterminal session through the VB app.
I have tried the following code (on a button click)
Private Sub Command1_Click()
With MSComm1
If .PortOpen = True Then
'send the data (including a tailing carriage return as often needed)
.Output = "TEST" & vbCr
End With
End Sub
But it says that the port is already open.
Therefore is it possible to have a COM port open with an APP such as hyperterminal and then simulate the transmission of data through a VB app?
Cheers
Just a Question?
I have opened a hyperterminal session and then created a vb app with a MSCOMM control.
What I was trying to do was to send data to the hyperterminal session through the VB app.
I have tried the following code (on a button click)
Private Sub Command1_Click()
With MSComm1
If .PortOpen = True Then
'send the data (including a tailing carriage return as often needed)
.Output = "TEST" & vbCr
End With
End Sub
But it says that the port is already open.
Therefore is it possible to have a COM port open with an APP such as hyperterminal and then simulate the transmission of data through a VB app?
Cheers