form1://启动线程(xc01)
bl_Thread:='kucun';
newThread1:=TThread1.create(false);
//线程单元unit xc01;interfaceuses
Classes;type
TThread1 = class(TThread)
private
{ Private declarations }
protected
procedure Execute; override;
end;implementationuses gotozhangtao,pinmingliebiao;procedure TThread1.Execute;
var
xc01_1:string;
begin
FreeOnTerminate:=true;
if bl_Thread='kucun' then
begin
xc01_1:='Y';
while xc01_1='Y' do
begin
pinmingliebiao_w.Find_thread;
end;
end;
end;end.
bl_Thread:='kucun';
newThread1:=TThread1.create(false);
//线程单元unit xc01;interfaceuses
Classes;type
TThread1 = class(TThread)
private
{ Private declarations }
protected
procedure Execute; override;
end;implementationuses gotozhangtao,pinmingliebiao;procedure TThread1.Execute;
var
xc01_1:string;
begin
FreeOnTerminate:=true;
if bl_Thread='kucun' then
begin
xc01_1:='Y';
while xc01_1='Y' do
begin
pinmingliebiao_w.Find_thread;
end;
end;
end;end.
解决方案 »
- 如何给DBGrid某行某列赋值
- 开发OFFICE下的COM组件,DELPHI合适不?随便聊聊
- 假设一个表有n条纪录,我要从中随机抽取m条不重复的纪录,求助算法.(m<n)
- delphi中20100105文本如何转换成日期格式
- 为什么我用XMLBroker和InetXPageProducer做的Web程序不可以在IE中运行?
- Delphi7里没有QiuckRep,怎么办?(在线等)
- 请问谁有Install Shield中文资料!急用!!
- 无法打开程序,难道要重做?
- 在Database的参数中添加了user 和password,而当用database.session.gettablename还要登陆???
- 怎样自定义对话框?
- 关于LoadFromStream method (TMemoryStream)的问题
- 总是有错
while not Terminated do
begin
//
end;
var
xc01_1:string;
begin
while not Terminated do
begin
FreeOnTerminate:=true;
if bl_Thread='kucun' then
begin
xc01_1:='Y';
while xc01_1='Y' do
begin
pinmingliebiao_w.Find_thread;
end;
end;
end;
end;