我有段代码, 为什么不行?
var
x:integer;
begin
batchmove.execute;
source.open;
target.exclusive:=true;
target.open;
source.indexdefs.update;
for x:=0 to source.indexdefs.count-1 do
target.addindex(source.indexdefs[x].name,source.indexdef[x].fields,
source.indexdefs[x].option);
source.close;
target.close;
end;
请各位大虾指导!