Autor Beitrag
ceding
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 53

Win XP
D 4
BeitragVerfasst: So 27.02.05 11:57 
Tach!
Ich hab ein Problem
Wenn man auf einem Button klick dan soll ein neues Item in einer ComboBox erscheinen, das ich einem Edit Fenster steht.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Button1Click(Sender: TObject);
begin
  ComboBox1.Items:=ComboBox1.Items+Edit1.text;
end;


Es komm immer der Fehler "Inkompatible Typen: 'String' und 'TStrings' "

Hoffe auf Antwort!

Moderiert von user profile iconAXMD: Code- durch Delphi-Tags ersetzt.
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: So 27.02.05 12:01 
:welcome:

Es müsste heißen

ausblenden Delphi-Quelltext
1:
ComboBox1.Items.Add(Edit1.Text);					


AXMD
ceding Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 53

Win XP
D 4
BeitragVerfasst: So 27.02.05 12:04 
genau was ich suchte :!: