Autor Beitrag
der_ich
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 20



BeitragVerfasst: Mo 13.02.06 21:50 
hi

leute ich steh irgendwie auf dem schlauch und verstehe echt nicht warum folgendes einfach nicht funktionieren soll

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
for x:=0 to liste_checklist.Count-1 do
    if liste_checklist.selected[x]=true then begin
      loesch(x);
      liste_checklist.items.Delete(x);
      end;


bitte um möglichst schnelle antwort
thx
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Mo 13.02.06 21:59 
... loesch(x)

steht das für eine function?
ansonsten wäre mir der befehl neu :lol:
der_ich Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 20



BeitragVerfasst: Mo 13.02.06 22:02 
ja das ist ne procedure weil ich im hintergrund ein paar zeiger umhängen muss wenn ich das rausnehme gehts trotzdem nicht - d.h. daran liegts nicht
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 13.02.06 22:40 
Moin!

Mach das mal so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
for x := liste_checklist.Count-1 downto 0 do  
  if (liste_checklist.selected[x]) then begin  
    loesch(x);  
    liste_checklist.Items.Delete(x);  
  end;

cu
Narses