constructor fythread.create(bl:boolean);// 创建线程
begin
inherited create(bl);
freeonterminate:=true;
// 线程终止时自动删除对象,
end;
procedure fythread.Execute;
begin
Fmts_lzh_cost_norm.get_cost_norm_fy(com_conn_str,'001',false,true,'',Form_hyq_cost_norm.current_location,
succeed,Form_hyq_cost_norm.cost_norm_eof,fail_info,vdatas);//这句是从MTS组件获得数据库的数据
synchronize(mymethoad);
end;
procedure fythread.mymethoad;
begin
if succeed then
begin
Form_hyq_cost_norm.cds_cost_norm.AppendData(vdatas,not Form_hyq_cost_norm.cost_norm_eof);//装入记录集
end
else
messagedlg(fail_info,mtinformation,[mbok],0);
showmessage('wo ai ni');//测试用的
end;
//单步到此就出错了,说是无效句宾