请问怎样用IF 判断Button1.Enabled 是TURE还是FALSE ??? 我这样写怎么不对的? if Button1.Enabled =ture then begin Button1.Enabled :=false; Button2.Enabled :=ture; end; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你这样写没有错,但可以更简便些 if Button1.Enabled then ... if Button1.Enabled then Button1.Enabled :=falseelse Button2.Enabled :=ture; if Button1.Enabled then Button1.Enabled :=falseelse Button2.Enabled :=true; 为何不用:Button2.Enabled := Button1.Enabled;Button1.Enabled := not Button1.Enabled; 新手的新手,True都写成了Ture,也不好编译错误信息的 好象很多新手都喜欢这样写,if后面的已经是boolean了,都要和true或false比较一遍 如何利用Indy控件进行流传送? delphi中如何使用indy中的TIDSMTP来发送有附件的邮件? 删除文件怎么显示进度?? 请大家帮我测试一个软件能否正确安装使用。保证给分 抢分了 随机图像小方块的显示 sql语法有什么错误? 如何实现光标的跳转? 快来发表!!!!!!! 懒的看书了,很简单的delphi问题,马上给分!!! 邮件发送成功,为什么接收不到呢? TMS AdvStringGrid数据录入的问题
if Button1.Enabled then ...
Button1.Enabled :=false
else
Button2.Enabled :=ture;
Button1.Enabled :=false
else
Button2.Enabled :=true;
为何不用:
Button2.Enabled := Button1.Enabled;
Button1.Enabled := not Button1.Enabled;