Forum.Deepsoftware.Com

DeepSoftware Products => nrComm Lib VCL (32bit / 64bit) => nrComm Lib => RS232 (serial) port => Topic started by: JohnPost on March 20, 2013, 02:10:12 AM

Title: Line Feed after decimal in string.
Post by: JohnPost on March 20, 2013, 02:10:12 AM
I am using NrBarcodeScan and the Barcode scan demo to read data from a scale For some reason the string is separating to a second line if it contains a decimal (mantissa on second line).  I am losing the decimal to create a float from string value.

For example it should read like this

10.25

Instead it returns and displays like this below on two lines without a decimal to be seen.

10
25


The only modification I made to the demo was to create a sendstring button for the device to return a weight.  Any help is appreciated. Otherwise this works really well.


John P.
Title: Re: Line Feed after decimal in string.
Post by: Roman Novgorodov on August 30, 2013, 06:16:46 AM
Hello

You can try to set boAnyChar option.

Roman Novgorodov
DeepSoftware llc