Recent

Author Topic: DbfFieldDefs does not show field names of memo fields  (Read 549 times)

JanRoza

  • Hero Member
  • *****
  • Posts: 581
    • http://www.silentwings.nl
DbfFieldDefs does not show field names of memo fields
« on: May 15, 2020, 02:31:45 pm »
I have a question about dbf files.
Creating a dbf file is easy with fpdfbexport and if I use level 7 (dBase VII) memo fields are no longer stored separately in a dbt file but in the same dbf file as the other fields.
I have a problem when I try to get the field names of such a dbf file via tDbf and DbfFieldDefs, the result is all field names except for the memo fields.
How can I get ALL field names from a dbf file?
I know dBase is an old format but I need my program to be able to import dBase data.
OS: Windows 10 (64 bit) / Linux Mint (64 bit)
Laz: Lazarus 2.0.10 FPC 3.2.0
       CodeTyphon 7.2 FPC 3.3.1

wp

  • Hero Member
  • *****
  • Posts: 7382
Re: DbfFieldDefs does not show field names of memo fields
« Reply #1 on: May 15, 2020, 03:08:48 pm »
I checked whether memos work with TDbf at all. Yes they do - see attachment.

Maybe your issue is related to fpdbfexport? Can you post a little demo?
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

JanRoza

  • Hero Member
  • *****
  • Posts: 581
    • http://www.silentwings.nl
[SOLVED] DbfFieldDefs does not show field names of memo fields
« Reply #2 on: May 15, 2020, 03:14:05 pm »
 :-[
I feel very stupid indeed, my RowCount for the resulting stringgrid was one too low.
I was just staring blind at the wrong place, my bad!  :-[
OS: Windows 10 (64 bit) / Linux Mint (64 bit)
Laz: Lazarus 2.0.10 FPC 3.2.0
       CodeTyphon 7.2 FPC 3.3.1

 

TinyPortal © 2005-2018