Recent

Author Topic: [Solved] DBEXPORT TFixedlengthExporter  (Read 366 times)

angman

  • Jr. Member
  • **
  • Posts: 58
[Solved] DBEXPORT TFixedlengthExporter
« on: March 20, 2025, 09:56:34 am »
There is a way to load the fields definition from external file? A more detailed documentation could help
« Last Edit: March 20, 2025, 10:35:19 am by angman »

Zvoni

  • Hero Member
  • *****
  • Posts: 2961
Re: DBEXPORT TFixedlengthExporter
« Reply #1 on: March 20, 2025, 10:15:53 am »
There is a way to load the fields definition from external file?
No
Quote
A more detailed documentation could help
Source: C:\lazarus\fpc\3.2.2\source\packages\fcl-db\src\export
File: fpfixedexport.pp

procedure TCustomFixedLengthExporter.BuildDefaultFieldMap(AMap: TExportFields);

If you want "custom" Field-Definitions, you have to override (either the Procedure above itself, or set FieldTypes et al after Creation, if that is even possible)
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

 

TinyPortal © 2005-2018