Autor Beitrag
Becks16
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 405



BeitragVerfasst: Mi 12.01.05 09:06 
Hallo

ausblenden Delphi-Quelltext
1:
2:
3:
ComboBox2.Items.Add('Fuchsschwanz');
ComboBox2.Items.Add('Motorsäge');
ComboBox2.Items.Add('Kreissäge');


Wie kann ich das in einer Zeile Schreiben ???


Moderiert von user profile iconUGrohne: Topic aus Sonstiges verschoben am Mi 12.01.2005 um 09:21
Moderiert von user profile iconTino: Code- durch Delphi-Tags ersetzt.
Moderiert von user profile iconTino: Titel geändert.

_________________
Ich bin Dumm und weiss nichts :-)
st-matze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 138

Win 3.11, Win 95, Win 98, Win XP
D7 Ent, D6 Pers, (D5 Pers)
BeitragVerfasst: Mi 12.01.05 09:18 
gar nicht.


oder doch ?! :wink:
ausblenden Delphi-Quelltext
1:
ComboBox2.Items.Add('Fuchsschwanz');ComboBox2.Items.Add('Motorsäge'); ComboBox2.Items.Add('Kreissäge');					
Becks16 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 405



BeitragVerfasst: Mi 12.01.05 09:23 
sehr witzig lool
also geht das überhaupt nicht ??

_________________
Ich bin Dumm und weiss nichts :-)
Ramon
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 107

WIN7
D6 Prof, D7 Prof, D 2009
BeitragVerfasst: Mi 12.01.05 09:29 
Klappt das nicht auch so?

ComboBox2.Items.Add('Fuchsschwanz'#$D#$A'Motorsäge'#$D#$A'Kreissäge');
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: Mi 12.01.05 09:37 
Ramon hat folgendes geschrieben:
Klappt das nicht auch so?

ComboBox2.Items.Add('Fuchsschwanz'#$D#$A'Motorsäge'#$D#$A'Kreissäge');


nein, aber so:
ausblenden Delphi-Quelltext
1:
ComboBox1.Items.Text:='Fuchsschwanz'#$D#$A'Motorsäge'#$D#$A'Kreissäge';					


aber warum so unübersichtlich machen???

_________________
Patrick
im zweifelsfall immer das richtige tun!!!
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Mi 12.01.05 16:35 
vllt will er ncih so viel schreiben... da würd ich allerdings with nehmen :roll:

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
st-matze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 138

Win 3.11, Win 95, Win 98, Win XP
D7 Ent, D6 Pers, (D5 Pers)
BeitragVerfasst: Do 13.01.05 08:04 
:gruebel:

da fällt mir doch spontan

Copy - Paste

ein
Becks16 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 405



BeitragVerfasst: Do 13.01.05 08:19 
Hallo

Ich dachte ich kann das irgendwie so schreiben

ausblenden Delphi-Quelltext
1:
ComboBox2.Items.Add('Fuchsschwanz','Motorsäge','Kreissäge');					


bloß für das ADD brauch ich was anderes , er sagt mir zuviele Parameter

Moderiert von user profile iconTino: Code- durch Delphi-Tags ersetzt.

_________________
Ich bin Dumm und weiss nichts :-)
st-matze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 138

Win 3.11, Win 95, Win 98, Win XP
D7 Ent, D6 Pers, (D5 Pers)
BeitragVerfasst: Do 13.01.05 08:38 
:autsch:


dann nimm doch:

ausblenden Delphi-Quelltext
1:
ComboBox1.Items.Text:='Fuchsschwanz'#$D#$A'Motorsäge'#$D#$A'Kreissäge';					


um die Werte zu setzen

oder

ausblenden Delphi-Quelltext
1:
ComboBox1.Items.Text:=ComboBox1.Items.Text+'Fuchsschwanz'#$D#$A'Motorsäge'#$D#$A'Kreissäge';					


um die Werte zu erweitern (hinzuzufügen).

st-matze
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Do 13.01.05 10:08 
oder zb so:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
{$UNTESTED}
var
  eintraege: TStringList
.
.
begin
  .
  Combobox.Items.Assign(eintraege)
  .
end;


mfg, stefan
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: Do 13.01.05 12:20 
in dem fall müsste er aber auch irgendwie die einträge in die stringlist bekommen :eyes: :crying: :bawling:

_________________
Patrick
im zweifelsfall immer das richtige tun!!!
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Do 13.01.05 12:22 
Wie wäre es, alle Einträge in eine Datei zu schreiben und dann ein LoadFromFile zu machen?
arminho
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 59



BeitragVerfasst: Do 03.02.05 19:31 
wie genau macht man dieses loadfromfile? wie ist der befehl genau dazu?
wenn ich daten aus einem textfile als items der combobox benutzen möchte.
danke
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Do 03.02.05 19:50 
Hallo arminho :welcome:

ausblenden Delphi-Quelltext
1:
combobox1.Items.LoadFromFile('C:\Verzeichnis\DeineDatei.txt');					


Mehr ist das nicht.
darnoXilef
Hält's aus hier
Beiträge: 10



BeitragVerfasst: Fr 11.03.05 19:58 
ComboBox2.Items.Add('Fuchsschwanz'+'Motorsäge'+'Kreissäge');

oder concat() aus pascal times *g*