DBF

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
uffek
Posts: 37
Joined: Fri 14 Nov 2014 21:49
Location: Roskilde, DK

DBF

Post by uffek » Thu 23 Nov 2017 13:16

The code in http://www.routeware.dk/temp/devart_test.7z do not work with the included DBF file. I get the error "feild type " and then nothing more. Besides the typo in the error message, what is wrong with the DBF?

I am on 10.1 and unidac 7.1.4.

uffek
Posts: 37
Joined: Fri 14 Nov 2014 21:49
Location: Roskilde, DK

Re: DBF

Post by uffek » Thu 23 Nov 2017 13:28

Adding UniConnection1.SpecificOptions.Add('DBFFormat=dfdBaseIII'); helped.

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: DBF

Post by azyk » Fri 24 Nov 2017 08:19

It's good that you found the issue solution.

In xBase, data types are defined with single-byte characters. The error message 'Field type . not allowed for table type dfdBaseVII.' means that there is a data type defined with . symbol, which is not supported for the tables with the dfdBaseVII type. To solve the issue, you should set a value of the specific option DBFFormat to the format used in this DBF file.

Post Reply