fcl-db/dbase: use new .AsBCD; updaeted history

git-svn-id: trunk@24183 -
This commit is contained in:
reiniero 2013-04-07 16:21:34 +00:00
parent b9ed22b705
commit a3a9be18bc
2 changed files with 4 additions and 3 deletions

View File

@ -31,8 +31,9 @@ BUGS & WARNINGS
- storedefs is not updated automatically when fielddefs are changed
FreePascal trunk:
- initial read support for (Visual) FoxPro files (r24139)
FreePascal trunk (future V7.0.0):
- clarification on field types; remove some workarounds (r24169) todo: reinstate depending on test set
- initial support for (Visual) FoxPro files (r24139)
- annotated constants/file structure (r24139)
- factored out get version/get codepage subprocedure for readability (r24139)
- split out existing support for Visual FoxPro and Foxpro (r24109)

View File

@ -186,7 +186,7 @@ begin
FieldByName('FCURRENCY').AsCurrency := testCurrencyValues[i];
// work around missing TBCDField.AsBCD:
if (Result as TDBF).TableLevel >= 25 then
FieldByName('FBCD').AsFloat := StrToFLoat(testFmtBCDValues[i],Self.FormatSettings);
FieldByName('FBCD').AsBCD := StrToBCD(testFmtBCDValues[i],Self.FormatSettings);
FieldByName('FDATE').AsDateTime := StrToDate(testDateValues[i], 'yyyy/mm/dd', '-');
FieldByName('FLARGEINT').AsLargeInt := testLargeIntValues[i];
Post;