Delphi

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Accessing Compilation Date

    5 answers - 155 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    How does a running Delphi program access the date of its compilation?
    Rainer
    Delphi mailing list -Delphi (AT) elists (DOT) org
  • No.1 | | 323 bytes | |

    Rainer von Saleski wrote:
    How does a running Delphi program access the date of its compilation?

    If you managed to get it to contain that date in the first place,
    shouldn't you already know how to retrieve it?

    Delphi doesn't put the compilation date in the programs it produces.

    *delphi*
  • No.2 | | 869 bytes | |

    You may find these two articles by Phil Brown on
    http://www.howtodothings.com useful.

    The first on "Standardising Application Builds" provides some background
    information.

    The second on "Adding Version Information To Applications" investigates the
    means by which version information can be made available within an
    application, writing a class which can be incorporated into any new
    development.

    HTH

    PC

    Message
    From: "Rainer von Saleski" <rainer (AT) vonsaleski (DOT) com>
    To: <delphi (AT) elists (DOT) org>
    Sent: Friday, 28, 2005 7:29 PM
    Subject: Accessing Compilation Date

    How does a running Delphi program access the date of its compilation?

    Rainer

    Delphi mailing list -Delphi (AT) elists (DOT) org

    Delphi mailing list -Delphi (AT) elists (DOT) org
  • No.3 | | 770 bytes | |

    Rob Kennedy wrote:

    Rainer von Saleski wrote:
    >How does a running Delphi program access the date of its compilation?
    >

    If you managed to get it to contain that date in the first place,
    shouldn't you already know how to retrieve it?

    If I had placed the date in the program, yes, I would have known how to
    retreive it :-)

    Delphi doesn't put the compilation date in the programs it produces.

    Aha! A useful answer! Hard to believe, but useful.

    *delphi*

    Even more useful! This led me to the (less than obvious) nesting of
    functions
    to retreive the file date of the EXE file. Thank you!

    Rainer

    Delphi mailing list -Delphi (AT) elists (DOT) org
  • No.4 | | 451 bytes | |

    From: "Rainer von Saleski" <rainer (AT) vonsaleski (DOT) comwrote

    How does a running Delphi program access the date of its
    < compilation?

    Is this what you want?

    function GetCompilationDate: tDateTime;
    begin
    Result := FileDatetoDateTime(FileAge (Application.ExeName));
    end;

    Henry Bartlett
    email: hambar at microtech dot com dot au

    Delphi mailing list -Delphi (AT) elists (DOT) org
  • No.5 | | 466 bytes | |

    At 04:29 AM 29/10/2005, Rainer von Saleski wrote:
    >How does a running Delphi program access the date of its compilation?
    >
    >Rainer


    Hello Rainer,

    I'm not sure if you've got an answer for this, but in D3 I used an "expert"
    which provided this function for me. It's available for D3, D4 & D5 from

    Cheers,
    Chris.

    Delphi mailing list -Delphi (AT) elists (DOT) org

Re: Accessing Compilation Date


max 4000 letters.
Your nickname that display:
In order to stop the spam: 2 + 1 =
QUESTION ON "Delphi"

EMSDN.COM