Autor Beitrag
raven
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 54



BeitragVerfasst: Mo 13.01.03 16:17 
hi

gibt es bei der checklistbox so was wie

if checklisbox.checked>-1 then

ich möchte also prüfen ob mindestens 1 item gecheckt ist ...

geht das?

danke
Alibi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458

Win2K SP3
Delphi 6 Ent
BeitragVerfasst: Mo 13.01.03 16:33 
if true in [CheckBox1.Checked, CheckBox2.Checked, CheckBox3.Checked] then


So würd ich das machen.
Leathl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Mo 13.01.03 16:34 
---


Zuletzt bearbeitet von Leathl am So 16.08.09 14:06, insgesamt 1-mal bearbeitet
iaby
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21



BeitragVerfasst: Mo 13.01.03 16:59 
kann es grad nicht ausprobieren aber:
bei listbox gibts so was:
ausblenden Quelltext
1:
if checklistbox1.items.checkcount >= -1					

versuchs mal, hab aber keine ahnung :D
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Mo 13.01.03 17:19 
ausblenden Quelltext
1:
2:
3:
4:
5:
result:=false;
for i:=1 to checklistbox1.items.count-1 do
begin
 if checklistbox.checked[i]=true then begin result:=true;exit; end;
end;


Vielleicht umständlich aber es klappt...

Fiji-Fighter