• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 

Line Feed after decimal in string.

Started by JohnPost, March 19, 2013, 11:10:12 pm

Previous topic - Next topic

JohnPost

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.

Roman Novgorodov

Hello

You can try to set boAnyChar option.

Roman Novgorodov
DeepSoftware llc
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.