delphi程序解读
procedureTForm1.Button1Click(Sender:TObject);varstr:String;beginstr:=Combobox1.Text;i...
procedure TForm1.Button1Click(Sender: TObject);
var str:String;
begin
str:=Combobox1.Text;
if (str='') then
begin
showmessage('请选择要打开的窗体');
exit;
end;
if (str='2') then
begin
Application.CreateForm(TForm8, Form8);
Form8.ShowModal;
exit;
end;
if (str='3') then
begin
Application.CreateForm(TForm3, Form3);
Form3.ShowModal;
exit;
end;
showmessage('嘎嘎,只有选择2,3才给你弹窗口哦.');
end;
这段程序是啥意思? 展开
var str:String;
begin
str:=Combobox1.Text;
if (str='') then
begin
showmessage('请选择要打开的窗体');
exit;
end;
if (str='2') then
begin
Application.CreateForm(TForm8, Form8);
Form8.ShowModal;
exit;
end;
if (str='3') then
begin
Application.CreateForm(TForm3, Form3);
Form3.ShowModal;
exit;
end;
showmessage('嘎嘎,只有选择2,3才给你弹窗口哦.');
end;
这段程序是啥意思? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询