type
TBatchMoveThread = class(TThread)
private
FBatchMove: TBatchMove;
FDestination: TTable;
FSource: TBDEDataSet
protected
proceduredo
Move;
procedure Execute;
Override;
public
Constructor Create(Suspended: Boolean;
BatchMove: TBatchMove;
Destination: TTable;
Source: TBDEDataSet);
end;
{........................} ///不要偷懒,自己写一点吧 implementation
procedure TBatchMoveThread.DoMove;
begin
{.................} //在这里可以加一点判断数据源什么的啦!!!!!
FBatchMove.Execute;
end;
procedure TBatchMoveThread.Execute;
begin
//考虑要同步之类的,在这里可以处理啦,所以加了一个do
Move函数,不喜欢可以把do
Move里的放到下面来哦!!!!!!!!!
do
Move;
//Synchronize(DoMove);
end;
Constructor TBatchMoveThread.Create(Suspended: Boolean;
BatchMove: TBatchMove;
Destination: TTable;
Source: TBDEDataSet);
begin
Inherited Create(Suspended);
FBatchMove:= BatchMove;
FDestination:= : Destination;
FSource:= Source;
FreeOnTerminate:= True;
//结束后释放线程
end;
{...........................}//下面是你的程序代码啦
搞定啦,
看楼主还有什么问题啦????????
有什么问题贴出来哦!!!!!!
呵呵~~~~~~~~~~~~~~~~~~~