Autor Beitrag
aba2si
Hält's aus hier
Beiträge: 11

WIN 2000
Delphi 2006
BeitragVerfasst: Fr 01.02.08 13:45 
Hallo zusammen,

ich habe mir einen Kalendar mit TMonthCalendar gebastelt und möchte nun das Monatsende erkennen.
Kann mir einer sagen, wie das geht?? Hab in der Hilfe leider nichts gefunden.

Danke
Grüßle
Andy
Agawain
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 460

win xp
D5, MySQL, devxpress
BeitragVerfasst: Fr 01.02.08 14:35 
hi

Nimm den 1. des betreffenden Monats, addiere einen Monat mit Hilfe von incMonth() und zieh einen Tag ab.

_________________
Gruß Aga
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 01.02.08 14:38 
Das geht auch einfacher. Schau dir einfach mal die Funktion EndOfAMonthder Unit DateUtilsan:
ausblenden Delphi-Quelltext
1:
function EndOfAMonth(const AYear: Word; const AMonth: Word): TDateTime;					

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

win xp
D5, MySQL, devxpress
BeitragVerfasst: Fr 01.02.08 14:52 
Boaaahhh,

das habe ich nicht :bawling: :motz:

Ich sollte wohl doch mal erwägen, auf ne neuere Version umzusteigen :lol:

_________________
Gruß Aga