troubleshooting Question

MSComm OCX - buffering

Avatar of Malek103197
Malek103197 asked on
Visual Basic Classic
9 Comments1 Solution664 ViewsLast Modified:
I am reading data (ASCII string ) from the serial port that often gets broekn up. What I mean is this -

The sting has a start and end character to deliminate the entire string -
<sasrwaskdmswriuwriwrwer> where there is a fixed number of charcters.

However, the string often arrives in pieces. There may be <sasrwask that arrives, followed soon
after by the rest (i.e. dmswriuwriwrwer>).

I need to assemble the string back together and then bring it into my app. (VB).  I assume I need to keep the parts
in a buffer and then assemble them to make up the proper string.

Can anyone provide me with some hints on how to do this. I have examined the VBTerm sample
but not sure if it can assemble the parts of the string.


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros