mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 20:49:14 +02:00
* fcl-db/dbase: let dbf.pas apply default blocklength=64 (instead of 512) for *foxpro
git-svn-id: trunk@24210 -
This commit is contained in:
parent
8353d53b69
commit
36cb560e0d
@ -1518,6 +1518,10 @@ begin
|
|||||||
FDbfFile.DbfVersion := TableLevelToDbfVersion(FTableLevel);
|
FDbfFile.DbfVersion := TableLevelToDbfVersion(FTableLevel);
|
||||||
FDbfFile.FileLangID := FLanguageID;
|
FDbfFile.FileLangID := FLanguageID;
|
||||||
FDbfFile.Open;
|
FDbfFile.Open;
|
||||||
|
// Default memo blocklength for FoxPro/VisualFoxpro is 64 (not 512 as specs say)
|
||||||
|
if FDbfFile.DbfVersion in [xFoxPro,xVisualFoxPro] then
|
||||||
|
FDbfFile.FinishCreate(ADbfFieldDefs, 64)
|
||||||
|
else
|
||||||
FDbfFile.FinishCreate(ADbfFieldDefs, 512);
|
FDbfFile.FinishCreate(ADbfFieldDefs, 512);
|
||||||
|
|
||||||
// if creating memory table, copy stream pointer
|
// if creating memory table, copy stream pointer
|
||||||
|
Loading…
Reference in New Issue
Block a user