VBCE: Clear the InBufferCount

The Comm control has a bug where the InBufferCount property is read-only when it really should be read-write. To work around this bug simply read the contents of the input buffer to clear it. Below is a reusable routine that does this for you. Here is a Command1 click event that will call the reusable routine to clear the buffer.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish