delphi¶dox7的问题:
我有一次运行程序时,出现一个错误:“Index is out of date.Table e:\db\table1.db”。为何会出现
“Index is out of date”?如何避免“Index is out of date”?或者是出现这个错误时,如何把它修正?
...全文
14186打赏收藏
关于“Index is out of date”的错误
delphi&Paradox7的问题: 我有一次运行程序时,出现一个错误:“Index is out of date.Table e:\db\table1.db”。为何会出现 “Index is out of date”?如何避免“Index is out of date”?或者是出现这个错误时,如何把它修正?
有人建议我重新建立索引,我用Database Desktop跟本就打不开,后来我这样写:
procedure TForm1.Button1Click(Sender: TObject);
begin
Table1.deleteindex('Immobility');
Table1.addindex('NewIndex','Immobility',[ixPrimary]);
end;
不过,一按button1则还是出现“Index is out of date.Table e:\db\Immobility.DB”。该如何做?