[fpc-pascal] Re: SDFDataset users!?

Roberto P. padovani.r at gmail.com
Tue Sep 25 22:06:43 CEST 2012


>
> I have not seen any evidence that it has ever been used other than for CSV,
> but I may be wrong. So I suspect that this should be acceptable.
>
>

>From a simple and unexperienced user point of view, the many times I
used the SDF dataset were only to load a CSV into a TMemDataset or
similar for further computing.
I found it simpler than CSVDocument (which anyway I discovered later)
because I can setup everything in the form designer and I only have to
change che filename I need at runtime. A simple call to
copyfromdataset will then copy the real data to the working dataset.
Finally, when everything is done, I use a TCSVExporter (also
completely filled in at design time and bound to the working dataset)
by calling its Execute method.

Very selfishly, If you drop the fixed length support, I won't notice
it; while if you rename the TSDFDataset to a TCSVDataset, then I have
to tweak & rebuild a few bit-tons of code.

R#

>
> Michael.
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal



More information about the fpc-pascal mailing list