if 3>1 and 2<1 then 这个语法编译的时候出错:不兼容的类型(大概)
而
if bitbtn3.Enabled=true and bitbtn4.Enabled=false then
就可以编译过去,但是他并没有达到我们的要求,
因为我发现正确的写法是:
if (bitbtn3.Enabled=true) and (bitbtn4.Enabled=false) then那么if bitbtn3.Enabled=true and bitbtn4.Enabled=false then
为什么能够编译通过而if 3>1 and 2<1 then就不能够编译通过呢?
而
if bitbtn3.Enabled=true and bitbtn4.Enabled=false then
就可以编译过去,但是他并没有达到我们的要求,
因为我发现正确的写法是:
if (bitbtn3.Enabled=true) and (bitbtn4.Enabled=false) then那么if bitbtn3.Enabled=true and bitbtn4.Enabled=false then
为什么能够编译通过而if 3>1 and 2<1 then就不能够编译通过呢?
解决方案 »
- delphi XE2 正版价格要多少钱?
- 请教如何利用WebService,WeatherWebService 来获取地方的天气预报
- 急急急dbgrid数据库数据自动更新
- 放在TList中的数据的保存问题
- 关于delphi软件开发工具的问题,求指点
- 请教这个错误:an error occurred while attempting to initialize the borland database engine(error$2108)
- QuickRep的连续打印???
- 请问如何将用户在Edit控件中输入的"2*30+20"这样的字符串自动计算出结果?
- 关于在win98下,无法在空白的combo box中直接输入中文的问题。
- 怎么用delphi的memo控件做一个能编辑64K以上文件的编辑器
- 让程序绝对崩溃的方法
- 有没有好用的OCR控件
会被编译器解释成如下形式: a < (1 and b) < 2 (and 运算的优先级比<要高)所以必须带括号写 (3>1) and (2 <1)
蒲石
是对的。