Autor Beitrag
kulka1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 81



BeitragVerfasst: Do 04.02.10 10:54 
Hallo,
ich habe eine frage:

Wie kann ich den Inhalt mit einem Array füllen?

Ich habe einen gregorianischen Kalender erstellt, der ausgibt, was für ein Wochentag zb der 4.2.2010 ist.
Die Eingabe des Tages und des Monates konnte ich ohne Probleme mit der ComboBox einstellen.

Nun möchte ich aber, dass in der dritten ComboBox alle Zahlen von 0 - 2010 drinstehen :D.
Weiß aber nicht wie ich das anstellen soll^^.


Danke schon mal für eure Hilfe.

kulka


Moderiert von user profile iconNarses: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Do 04.02.2010 um 11:32
platzwart
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1054
Erhaltene Danke: 78

Win 7, Ubuntu 9.10
Delphi 2007 Pro, C++, Qt
BeitragVerfasst: Do 04.02.10 11:14 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
For i:=0 to 2010 do
 begin
  ComboBox1.Items.Add(IntToStr(i));
 end;

_________________
Wissenschaft schafft Wissenschaft, denn Wissenschaft ist Wissenschaft, die mit Wissen und Schaffen Wissen schafft. (myself)
kulka1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 81



BeitragVerfasst: Do 04.02.10 11:26 
sehr vielen dank :D,
jetzt wo ich es sehen hätte es mir auhc selbst einfallen können :D

aber aufjedenfall danke ;)