Вниз
Скачать: CL | DM;

Что неправильно в условии:   Найти похожие ветки 

← →
fast2   (2006-08-17 15:48) [0]

if (CheckBox1.Checked:=true) and (CheckBox2.Checked:=false) and (CheckBox3.Checked:=false) then ...


← →
zdm ©   (2006-08-17 15:48) [1]

без двоеточий


← →
zdm ©   (2006-08-17 15:49) [2]

if (CheckBox1.Checked=true) and (CheckBox2.Checked=false) and (CheckBox3.Checked=false) then ...


← →
Ketmar ©   (2006-08-17 15:55) [3]

а лучще -- так:
if CheckBox1.Checked and not CheckBox2.Checked and not CheckBox3.Checked ...


← →
fast2   (2006-08-17 15:59) [4]

спасибо всем!


← →
SergP ©   (2006-08-18 00:40) [5]

> [3] Ketmar ©   (17.08.06 15:55)
> а лучще -- так:
> if CheckBox1.Checked and not CheckBox2.Checked and not CheckBox3.Checked
> ...


ну или так:

if CheckBox1.Checked and not (CheckBox2.Checked or CheckBox3.Checked)

Впрочем разницы ИМХО нет...


← →
Ketmar ©   (2006-08-18 01:19) [6]

> [5] SergP ©   (18.08.06 00:40)
я не захотел усложнять булевыми преобразованиями. %-)



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.033 c
3-1151948212
yon
2006-07-03 21:36
2006.09.10
450 полей в dbf


2-1155801843
ZX48
2006-08-17 12:04
2006.09.10
ping


2-1156164736
Alral
2006-08-21 16:52
2006.09.10
Full-screen


15-1155466218
Andy BitOff
2006-08-13 14:50
2006.09.10
Windows в 85 году


15-1155811350
Layner
2006-08-17 14:42
2006.09.10
Сок, который в коробках продается по 0,2/0,5/1...




   Наверх