Autor Beitrag
xilos
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 59



BeitragVerfasst: Mi 05.09.07 13:50 
Hallo,

wie kann ich denn das, was in einer Combobox drin steht als String Wert ausgeben?
z.B. in der Combobox steht 2005 und das soll dann in einem MemoFeld ausgeben werden.

Danke schon mal im Vorraus
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mi 05.09.07 13:55 
ausblenden Delphi-Quelltext
1:
Memo.Lines.Add(ComboBox1.Items[ComboBox1.ItemIndex]);					

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)
Mike19
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 256

Win XP, Vista, Win 7
Delphi 2005, Turbo Delphi
BeitragVerfasst: Mi 05.09.07 13:55 
Variable:=ComboBox1.Text;
Variable ist Format String;
azrael_7
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 78

Windows Vista
D2005 Pers. [de]
BeitragVerfasst: Mi 05.09.07 13:57 
ausblenden Delphi-Quelltext
1:
2:
var 
  s : String


ausblenden Delphi-Quelltext
1:
s := ComboBox1.Text					


Edit: gnarf... 2 Leute schneller...

_________________
-·- Es gibt Leute die bringen Freude, wohin sie gehen -·-
-·- und es gibt Leute, die bringen Freude, wenn sie gehen -·-
xilos Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 59



BeitragVerfasst: Mi 05.09.07 14:24 
Dankeschön....