苦
苦命的人
Unregistered / Unconfirmed
GUEST, unregistred user!
我估计要用到多线程,我的窗体有几个按钮,但我按了button1后,其他两个都用不了了,谁能帮我改改!!代码发到我信箱里吧:chenglong5678@163.com,求您了!!(168分)<br />unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
const
mystring: array [0..11] of string=('a','b','c','d','e','f','4','5','6','7','8','9');
type
TForm1 = class(TForm)
Button1: TButton;
Memo1: TMemo;
Button2: TButton;
Button3: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
i,j,k,l: integer;
begin
memo1.lines.clear;
for i:=0 to 11do
for j:=0 to 11do
for k:=0 to 11do
for l:=0 to 11do
memo1.lines.add(mystring+mystring[j]+mystring[k]+mystring[l]);
memo1.lines.savetofile('c:/yhhe.txt');
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
close;
end;
procedure TForm1.Button3Click(Sender: TObject);
begin
showmessage('这个按钮还能用!!');
end;
end.
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
const
mystring: array [0..11] of string=('a','b','c','d','e','f','4','5','6','7','8','9');
type
TForm1 = class(TForm)
Button1: TButton;
Memo1: TMemo;
Button2: TButton;
Button3: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
i,j,k,l: integer;
begin
memo1.lines.clear;
for i:=0 to 11do
for j:=0 to 11do
for k:=0 to 11do
for l:=0 to 11do
memo1.lines.add(mystring+mystring[j]+mystring[k]+mystring[l]);
memo1.lines.savetofile('c:/yhhe.txt');
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
close;
end;
procedure TForm1.Button3Click(Sender: TObject);
begin
showmessage('这个按钮还能用!!');
end;
end.