unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls;type
getmactthread = class(TThread)
private
i:string;
protected
procedure execute; override;
public
constructor create(str:string;ints:integer);
end;
TForm1 = class(TForm)
Button1: TButton;
ListBox1: TListBox;
Edit1: TEdit;
ProgressBar1: TProgressBar;
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;
ix:integer;
iy:string;implementation{$R *.dfm}procedure getmactthread.execute;
var
i:integer;
s:string;
begin
i:=ix;
s:=iy;
end;constructor getmactthread.create(str:string; ints:integer);
begin
inherited Create(true);
ix:=ints;
iy:=str;
end;
请问如何将i,s的值显示在listbox中
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls;type
getmactthread = class(TThread)
private
i:string;
protected
procedure execute; override;
public
constructor create(str:string;ints:integer);
end;
TForm1 = class(TForm)
Button1: TButton;
ListBox1: TListBox;
Edit1: TEdit;
ProgressBar1: TProgressBar;
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;
ix:integer;
iy:string;implementation{$R *.dfm}procedure getmactthread.execute;
var
i:integer;
s:string;
begin
i:=ix;
s:=iy;
end;constructor getmactthread.create(str:string; ints:integer);
begin
inherited Create(true);
ix:=ints;
iy:=str;
end;
请问如何将i,s的值显示在listbox中
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货