Код:
type
TMyThread = class(TThread)
private
iParam: Integer;
sParam: String;
procedure JurassicPark;
protected
procedure Execute; override;
public
constructor Create(iParam: Integer; sParam: String);
end;
constructor TMyThread.Create(iParam: Integer; sParam: String);
begin
inherited Create(True);
Self.iParam:=iParam;
Self.sParam:=sParam;
Resume;
end;
procedure TMyThread.Execute;
begin
// ...
Synchronize(JurassicPark);
// ...
end;
procedure TMyThread.JurassicPark;
begin
Form1.Tag:=iParam;
Form1.Caption:=sParam;
end;
__________________
Пишу программы за еду.
__________________
|