
MSCOMM - Port data, Mscomm no data
Hi{*filter*},
Good to talk to you again.
I've tried None and XonXoff. The core buffer processing is
code suggested by you, which works fine except for this
anomaly.
-------------------------
.Settings = "9600,n,8,1"
.RTSEnable = True
.DTREnable = True
.Handshaking = comNone ' comRTS
.InputMode = comInputModeText
.commPort = 1
.InputLen = 0
.RThreshold = 1
.SThreshold = 1
.OutBufferSize = 1024
.InBufferSize = 512
--------------------------
Case comEvReceive ' Received RThreshold # of chars.
InBuff = InBuff & m_comPort.Input
nPos = InStr(InBuff, Chr(scEOT))
If (nPos > 0) Then
Call subCreateMessage(Left$(InBuff, nPos))
InBuff = Mid$(InBuff, nPos + 2)
End If
===========================
Quote:
>-----Original Message-----
>Hi,
>I haven't ever seen this. I'd have to see an example.
What is your MSComm
>..Handshaking property?
>--
>Richard Grier (Microsoft Visual Basic MVP)
>See www.hardandsoftware.net for contact information.
>Author of Visual Basic Programmer's Guide to Serial
Communications, 3rd
>Edition ISBN 1-890422-27-4 (391 pages) published February
2002.
>.