Autor Beitrag
theCXT
Hält's aus hier
Beiträge: 12



BeitragVerfasst: So 28.05.06 14:41 
Heyho,

ich hab mal ne Frage: Wie kann man Delphi dazu bringen per Knopfdruck das jeweils aktuelle Datum anzuzeigen? Hoffe ihr könnt mir helfen! Und wie komme ich in Delphi 5 an DBEdits ran?

MfG

theCXT
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 28.05.06 14:45 
ausblenden Delphi-Quelltext
1:
showmessage(datetostr(now));					

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 28.05.06 14:45 
Das aktuelle Datum erhälst du durch aufruf der Funktion date() ohen Parameter.
Zum Anzeigen mußt du den TDateTime wert u.U. in einen string casten

ausblenden Delphi-Quelltext
1:
s := DateTimeToStr( Date());					


Die 2. Frage versteh ich nicht, formuliere sie bitte verständlicher in einem neuen Thread.

_________________
Markus Kinzler.
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: So 28.05.06 14:45 
oder  DateToStr(Date); ;)
Es ging ja bloß ums Datum :roll: