Browse Source

+ fcl-db/dbase: allow creation of Visual Foxpro tablelevel 30 files

git-svn-id: trunk@24122 -
reiniero 12 years ago
parent
commit
b9fc64f697
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-db/src/dbase/dbf.pas

+ 1 - 1
packages/fcl-db/src/dbase/dbf.pas

@@ -2356,7 +2356,7 @@ begin
   if NewLevel <> FTableLevel then
   begin
     // check validity
-    if not ((NewLevel = 3) or (NewLevel = 4) or (NewLevel = 7) or (NewLevel = 25)) then
+    if not (NewLevel in [3,4,7,TDBF_TABLELEVEL_FOXPRO,TDBF_TABLELEVEL_VISUALFOXPRO]) then
       exit;
 
     // can only assign tablelevel if table is closed