[fpc-pascal] DBF Field name length and fpdbfexport

Reinier Olislagers reinierolislagers at gmail.com
Fri Sep 2 14:38:48 CEST 2011


On 2-9-2011 13:23, michael.vancanneyt at wisa.be wrote:
> On Fri, 2 Sep 2011, Reinier Olislagers wrote:
<snip>
>> In packages\fcl-db\src\export\fpdbfexport.pp
>> These tablelevels/formats are defined:
>>  TTableFormat = (tfDBaseIII,tfDBaseIV,tfDBaseVII,tfFoxPro);
>>
>> In function
>> function TFPCustomDBFExport.BindFields: Boolean;
>> there is this part (line 136):
>>  If FormatSettings.AutoRenameFields and
>> (FormatSettings.TableFormat=tfDbaseIII) then
>>    CheckExportFieldNames;
>>
>> 1. Shouldn't this be amended to (don't know if you can use in in this
>> way):
>>  If FormatSettings.AutoRenameFields and (FormatSettings.TableFormat in
>> [tfDbaseIII,tfDbaseIV,FoxPro]) then
>>    CheckExportFieldNames;
<sip>
> Presumably, yes.
> 
> Michael.
Uploaded a patch, issue 20134
http://bugs.freepascal.org/view.php?id=20134

I think I've also found the solution to
http://bugs.freepascal.org/view.php?id=20069
(patch attached), so if somebody would be so kind to review & apply
them, I'd be very happy.

Thanks,
Reinier



More information about the fpc-pascal mailing list