Author Topic: Line Feed after decimal in string.  (Read 1006 times)

JohnPost

  • Newbie
  • *
  • Posts: 3
    • View Profile
Line Feed after decimal in string.
« 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.

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Line Feed after decimal in string.
« Reply #1 on: August 30, 2013, 06:16:46 am »
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.