Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Addmonths in welcher Unit? (https://www.delphipraxis.net/62305-addmonths-welcher-unit.html)

Haraldo 2. Feb 2006 18:37


Addmonths in welcher Unit?
 
Hallo
weis jemand in welcher unit addmonths zufinden ist bzw. welche ich einbinden muss

Khabarakh 2. Feb 2006 18:42

Re: Addmonths in welcher Unit?
 
Zitat:

Zitat von Haraldo
Hallo
weis jemand in welcher unit addmonths zufinden ist bzw. welche ich einbinden muss

Wenn du IncMonth meinst: Ja, ich.

:wink:

Vielleicht kannst du deiner Onlinehilfe ewas mehr entlocken als mir.

Haraldo 2. Feb 2006 18:43

Re: Addmonths in welcher Unit?
 
IncMonth ist in DateUtils ich suche aber AddMonth

Khabarakh 2. Feb 2006 18:55

Re: Addmonths in welcher Unit?
 
Und was für eine Funktion soll das sein? Mal davon abgesehen, dass sie bis heute noch nie irgendwo in der DP erwähnt wurde.

Haraldo 2. Feb 2006 19:31

Re: Addmonths in welcher Unit?
 
Adds a number of months to the timestamp.


procedure AddMonths(ANumber: Cardinal);

Parameters

ANumber: Cardinal

Number of months to be added.


Description

AddMonths is a procedure that adds the number of months in ANumber to the date / time. Day and Year will be adjusted accordingly.

so steht es in der Delphi hilfe aberkein syntax
das
Delphi-Quellcode:
xdatend1 := xdatend.addmonths(12);
ergibt Objektoderklassentyp erforderlich

squetk 2. Feb 2006 21:34

Re: Addmonths in welcher Unit?
 
Hallo,

AddMonths ist eine Methode von TidDateTimeStamp - also Bestandteil der Indy-Kompos (Unit IdDateTimeStamp).
Diese Komponente ist aber speziell für das Handling mit Datum- und Zeitwerten bzgl. des Internetprotokolls ausgelegt.


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:45 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz