Autor Beitrag
The...
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 122



BeitragVerfasst: Sa 24.09.05 13:05 
hi,

ich habe da etwas vor, aber komme gerade nicht weiter.

hier mit:
ausblenden Delphi-Quelltext
1:
memo13.text:=DateToStr(Now);					


kann man ja die uhrzeit auslesen. nun muss ich es aber so hin bekommen das str. min. sek. jewals ein memo haben und nicht alle zusammen in einem stehen..

wie geht das?

Moderiert von user profile iconraziel: Cs- durch Delphi-Tags ersetzt
Moderiert von user profile iconTino: Titel geändert.
Moderiert von user profile iconTino: Topic aus VCL (Visual Component Library) verschoben am Do 29.09.2005 um 10:03
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Sa 24.09.05 13:41 
Schau mal in der Delphi Hilfe unter hh mm ss .
Grishnak
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 221

Windows XP Home
Delphi 7 PE, Delphi 2005 PE
BeitragVerfasst: Sa 24.09.05 13:47 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
uses
  DateUtils;

[...]

Memo1.Text:=IntToStr(HourOf(Now));
Memo2.Text:=IntToStr(MinuteOf(Now));
Memo3.Text:=IntToStr(SecondOf(Now));

_________________
Mach' etwas idiotensicher und irgendjemand erfindet einen besseren Idioten!
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Sa 24.09.05 13:48 
Du kannst mit der Funktion Copy die jeweilicgen Daten aus DatetoStr(Now) rauskopieren und jeweils einzeln in ein Memo stellen.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Sa 24.09.05 14:00 
Oder...
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.Button1Click(Sender: TObject);
begin
  Memo1.Text:=FormatDateTime('hh', time);
  Memo2.Text:=FormatDateTime('mm', time);
  Memo3.Text:=FormatDateTime('ss', time);
end;
The... Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 122



BeitragVerfasst: Sa 24.09.05 15:28 
ach so ist das...

vielen dank an euch allen... das ist echt net :D :) :D