Versions des environnements
Network:
Windows 2008 Server
>A VFP application that has been running for years takes data passed by a third party app that reads data over a serial port from a currency counter.
>I'm doing a new app in .NET that will do the same thing.
>
>The third party app sends the amount of the currency denomination followed by a Carriage Return.
>There is a single 0 followed by a Carriage Return if the denomination amount is zero.
>When I read the string into word pad, I see the amounts and the Carriage Returns.
>When I read it into a textbox, I only see the amounts.
>The length of the string in the textbox is the length without the Carriage Returns.
>I need the Carriage Returns in order to parse the string into correct amounts.
>
>What to do?
Not sure where your problem lies.
I assume you are using System.IO.Ports.SerialPort in .NET.
If you are correctly receiving the data can you not just parse that - why is a TextBox involved ?
OTOH maybe just setting the TextBox.Multiline = true ?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement