Autor Beitrag
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8549
Erhaltene Danke: 478

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 25.11.02 12:00 
Ist wahrscheinlich ne blöde Frage, aber wie krieg ich in einer ListBox (MultiSelect = True) die Anzahl der markierten Elemente und deren Indizes in der Liste?
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 25.11.02 12:30 
In einer Schleife den Status abfragen.
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mo 25.11.02 12:47 
Hallo,

über eine FOR-NEXT-Schleife gehst Du alle Einträge der Listbox durch und mit Hilfe der Eingenschaft Selected prüfst Du nach ob der entsp. Eintrag markiert wurde!

Gruß
TINO
Gausi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8549
Erhaltene Danke: 478

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 25.11.02 13:13 
Danke, ein Problem weniger. :)