Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi ListBox Selected Item in TEdit (https://www.delphipraxis.net/98731-listbox-selected-item-tedit.html)

Gehstock 31. Aug 2007 12:14


ListBox Selected Item in TEdit
 
steh grad aufm Schlauch

also in der Listbox soll etwas gewählt werden wenn das passiert soll ein TEdit den Text enthalten

Delphi-Quellcode:
Edit1.Text:=Listbox1.Items.Text;
zeigt aber alle Einträge der ListBox an es soll aber nur der gewählte sein

DelphiKlaus 31. Aug 2007 12:18

Re: ListBox Selected Item in TEdit
 
Versuch mal

Delphi-Quellcode:
Edit1.Text := Listbox1.Items[ListBox1.Itemindex]

Gehstock 31. Aug 2007 12:20

Re: ListBox Selected Item in TEdit
 
Klappt Danke


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:41 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz