Recent

Author Topic: Does fixedformatdataset work in 0.9.27, fpc 2.2.5 svn version 21017?  (Read 4137 times)

saascuba

  • Newbie
  • Posts: 5
    • MJR Programming
fixedformatdataset

I am trying to use this component to import data from a file (example below) but the tool is not parsing the string into the fields correctly.

sample lines from file:

11      000002 0604 250        MG         R SEROMYCIN CAPSLUES
33      000002 1407 80         MG/ML      R QUINIDINE GLUCONATE INJECTION USP

I have created a schema with the columns:
listing_seq_no
lblcode
prodcode
strength
unit
rx_otc
tradename

Field length set programatically: 7, 6, 4, 10, 10, 1, 100 in corresponding fielddefs size field, but the string is still not being displayed for the desired length, only the start point is impacted.

Am I doing something wrong or is there a bug?

Oh, I am using snapshot 0.9.27, fpc 2.2.5 svn version 21017

Any help greatfully received.

Michael

 

TinyPortal © 2005-2018