procedure Tdistill.execute;
var
i:integer;
begin
Synchronize(init);
query.Connection := connection;
createtable(table);
data1query.Connection := connection;
command.Connection := connection;
for i:=1 to Psum1 do
begin
T_ID := inttostr(i);
//函数distill_theme是抽取一份试卷的函数,成功返回true
if (not distill_theme()) or terminated then
begin
exit;
end;
//synchronize(showmsg2);
end;
//synchronize(showmsg3);
end;