16,742
社区成员
发帖
与我相关
我的任务
分享
procedure TForm1.Button1Click(Sender: TObject);
var
memo1: Tmemo;
begin
memo1:=tmemo.Create(self);
if button1.Caption='start' then
button1.Caption :='stop'
Else if button1.Caption ='stop' then
button1.Caption :='start'
else
button1.Caption :='stop';
Randomize ;
memo1.Text :=inttostr(random(20));
Showmessage(memo1.Text );
end;