Autor Beitrag
Tulkas
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 21

WinXP SP2
Delphi7
BeitragVerfasst: Mo 30.10.06 14:16 
Hallo!

Wie bekomme ich es hin, über einen TDateTimePicker einen negativen Stunden/Minuten-Wert zu bekommen?
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Mo 30.10.06 14:48 
Hallo,

gar nicht!
Die Zeit ist der Nachkomma-Anteil des Datums und dieses kann nur Werte zwischen 0 und 1 annehmen.

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
Tulkas Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 21

WinXP SP2
Delphi7
BeitragVerfasst: Di 31.10.06 10:02 
Aber wie bekomme ich es hin, über eine Usereingabe (5h, 3 1/2h,...) eine Zeiteingabe zu bekommen? Und die muss in manchen Fällen auch negativ sein (also -5h, -3 1/2h,..)
crowley
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 406

Win XP, Win Vista, Mandriva, Ubuntu
Delphi 4-8, Delphi 2006, Delphi 2007
BeitragVerfasst: Fr 03.11.06 10:37 
Aller Wahrscheinlichkeit nach nicht mit einem TDateTimePicker, denn der kann eben nur "positive Zeiten"

Versuche es mit einem TMaskEdit, dass du dir entsprechend einrichtest... für eine negative Zeit, kannst du dann im Zweifelsfall sowas wie
ausblenden Delphi-Quelltext
1:
-frac(Time)					


nehmen