I have few questions about the Data Export components, (e.g.
TCSVExporter).
I create a database at runtime, then I create queries and I would
like to save the resulting datasets.
Is it possible to save the datasets using as field headers something
different than the field names? Have I to use the ExportedName
property? How can I set it during runtime?
Yes, ExportedName is what should be used.
You should populate the ExportFields collection, and set the ExportedName
property of each item.
I will try it.
Is it possible to define a mask to save float fields? e.g If I would
like to save a float number with only two decimal digits, how can I
do that?
I would think that the displaymask of the field component can be used
to do
so ?
Do you mean the DisplayFormat of the field? If so, it does not work. If
I set the DisplayFormat of the fields, the fields are shown correctly on
a dbgrid but when I save them using TCSVExporter they are saved without
formatting.
andrea
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus