注册 登录
编程论坛 Delphi论坛

新手求助 如果Edit.text =你好 就结束程序该怎么写

hushengxian 发布于 2010-01-07 06:50, 1277 次点击
RT ` 哪位朋友能告知下
3 回复
#2
ruanjian21102010-01-08 11:22
if Edit.text ='你好' then exit;
#3
shuang2009112010-01-09 20:44
If Edit.Text = '你好' then Application.Terminate;
#4
dong_first2010-01-31 12:35
>> If Edit.Text = '你好' then Application.Terminate;
顶!

也可以在MainForm(主窗口)中写:
  If Edit.Text = '你好' then Self.Close;  //我一般都这么写
 
1