gettingstarted
[Top] [All Lists]

Re: Serial Port Problems

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Serial Port Problems
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Tue, 31 Aug 2004 11:23:33 -0500
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <A168D298-FB68-11D8-B92E-000A95B8E76E at bellsouth dot net>
At 11:13 AM -0500 8/31/04, Barry Lumpkin wrote:

The system finds the fake serial port fine. I'm supposed to get 111 ASCII characters when I do a ReadAll. Instead of getting all 111 characters in one read, evidently DataAvailable fires two or three times before I get the entire string.

That's perfectly normal.

Right now I'm combining the reads via a EditField to come up with all 111 characters.

I really wouldn't recommend an EditField for this purpose. An EditField is a place for editing text, not a storage area for data. Use a simple string property instead (use the New Property command and type "data as String", and you now have a property called "data" which can hold a string).

Best,
- Joe

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>