Autor Beitrag
Danny W.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 296

Windows XP, WIN 2000
Delphi 2005 PE
BeitragVerfasst: Fr 01.12.06 09:35 
Hallo,
ich hab grade voll die Lücke...ich meine das ich das sonst immer hinbekommen habe... ich möchte eine einfache stopp-uhr machen, die von 1:1 auf 60:60 geht

ich hab mir jetzt nen Timer geschnappt, ne verschachtelte For-Schleife hineingeklatscht und war mir irgendwie sicher, das es so funktionieren würde...
ausblenden Delphi-Quelltext
1:
2:
3:
    for i := 1 to 60 do
      for x := 1 to 60 do
       label1.caption:=inttostr(i)+':'+inttostr(x);


Kann mir jemand sagen wie das nochmal geht? :oops:


mfG

_________________
"Ich find den Fehler nicht. Der Artist wird immer als "Syntax Error" gezeigt :("
"Ach verdammt, der Artist heißt wirklich "Syntax Error" xD"
Pille
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 105

Windows 7
DelphiXE Prof.
BeitragVerfasst: Fr 01.12.06 09:58 
So werden die Schleifen jede Sekunde komplett durchlaufen. Die Anzeige darf bei jedem Timerauffruf nur um 1 Sekunde weitergezählt werden. Also: Zeit außerhalb des Timerereignisses speichern und mit jedem Timeraufruf 1 Sekunde weiterzählen.

mfg Pille
Danny W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 296

Windows XP, WIN 2000
Delphi 2005 PE
BeitragVerfasst: Fr 01.12.06 10:00 
stimmt ^^ ... naja is noch früh, verzeihts mir :P

danke Pille ;)

_________________
"Ich find den Fehler nicht. Der Artist wird immer als "Syntax Error" gezeigt :("
"Ach verdammt, der Artist heißt wirklich "Syntax Error" xD"