Autor Beitrag
Bestzeller
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 48



BeitragVerfasst: Sa 25.04.09 22:21 
Abend
Ich lad einige Strings in die Listbox und möchte, wenn ich auf eines der Strings klicke den String zurück haben um nacher eine Variable dementsprechend zu verändern.
Wie mach ich das?


Moderiert von user profile iconNarses: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am So 26.04.2009 um 11:17
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Sa 25.04.09 22:46 
ausblenden Delphi-Quelltext
1:
2:
3:
OnClick:
if ListBox1.ItemIndex >= 0 then
  ShowMessage(ListBox1.Items[ListBox1.ItemIndex]);
Bestzeller Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 48



BeitragVerfasst: So 26.04.09 18:32 
Thx!