Autor Beitrag
Amarradi
Hält's aus hier
Beiträge: 15



BeitragVerfasst: Sa 09.11.02 14:39 
Hallo
entweder bin ich zu blöd(am wahrscheinlichsten) :shock: oder es geht bei mir nicht(am unwahrscheinlichsten) :oops:

kennt jemand den Quelltext zum Thema Uhrzeitvergleich mit der Timerkomponente.(bitte schick in mir).
Das mit If FormatDateTime() Then hab ich im großen und ganzen kappiert
:o :dance:
wie kann ich das im Intervall von 1 Sekunde vergleichen:?:

Das ich dazu die Timerkomponente brauch ist klar deren Inervall setzte ich auf 1000.
Und jetzt.....

helft mir. :)

_________________
If God has created the world, his primary worry was certainly not to make its understanding easy for us. 'Albert Einstein'
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Sa 09.11.02 15:45 
Ich verstehe nicht ganz, was du meinst und auf was du rauswillst. :roll:
Wäre schön wenn du mal erklären würdest, um was genau es geht.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 09.11.02 16:12 
versuchs mal so:

ausblenden Quelltext
1:
if TimeToStr(now) = '13:14:10' then					


das müsste klappen !!

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Sa 09.11.02 16:19 
Ach so meint er dass. Er will wissen ob es gerade soundsoviel Uhr ist. Ja, dann dürfte es damit gehen.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 09.11.02 17:41 
Unsicher. Wenn der Rechner ausgelastet ist, dann kann es schon mal vorkommen, dass der Timer eine oder auch mehrere Sekunden ausläßt. Besser ist auf "größer" zu vergleichen:
ausblenden Quelltext
1:
if now > StrToTime('13:40:00') then					
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Sa 09.11.02 18:29 
Dann braucht man aber auch

and(now<13:45:00)