* 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:
reiniero 2013-04-09 06:55:08 +00:00
parent 8353d53b69
commit 36cb560e0d

View File

@ -1518,7 +1518,11 @@ begin
FDbfFile.DbfVersion := TableLevelToDbfVersion(FTableLevel);
FDbfFile.FileLangID := FLanguageID;
FDbfFile.Open;
FDbfFile.FinishCreate(ADbfFieldDefs, 512);
// 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);
// if creating memory table, copy stream pointer
if FStorage = stoMemory then