我用batchmove导出dbf文件
导出成功,但我用vfp打开时报错:不是dbf表
用access打开是乱码
请问怎么回事?

解决方案 »

  1.   

    ?在程序或者desktop里面能打开么?代码。。
      

  2.   

    可以if SaveDialog1.Execute then
            begin
             TbDest.Databasename:=ExtractFilepath(SaveDialog1.FileName);
             TbDest.TableName:=ExtractFileName(SaveDialog1.FileName);
             EdtTbDest.Text:=ExtractFileName(SaveDialog1.FileName);
            end
           else
             abort;
          end
      Tbsource.TableName:=str;  //str为后端库sql server中的表
      BatchMove1.Mode:=batCopy;
     try
      BatchMove1.Execute;
      Application.MessageBox('   数据导出成功!    ','提示',mb_iconWarning+MB_OK);
     except
      Application.MessageBox('   数据导出失败!     ','提示',mb_iconWarning+MB_OK);
     end;