Autor Beitrag
110022
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 287

XP SP2
Delphi 7
BeitragVerfasst: Mi 31.10.07 17:29 
sagen wir es ist 14:34:17 uhr ich stelle den Wecker auf 18:00:00 und möchte als label angezeigt bekommen wieviel zeit noch überbleibt.
wie geht das?
Saubäär
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 376



BeitragVerfasst: Mi 31.10.07 18:04 
Hi,

wenn du keine Variablen verwenden möchtest, dann so:

ausblenden Delphi-Quelltext
1:
 Label1.Caption := TimeToStr(StrToTime('18:00:00') - StrToTime('14:34:17'));					


Gruß