Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading from a currency counter
Message
De
05/12/2015 05:44:50
 
 
À
04/12/2015 16:47:54
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01628506
Message ID:
01628514
Vues:
47
This message has been marked as the solution to the initial question of the thread.
>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
Fil
Voir

Click here to load this message in the networking platform