Re: [NTLK] Programming question: build-number and/or date in NTK

From: Paul Guyot (pguyot_at_kallisys.net)
Date: Tue Dec 17 2002 - 00:25:08 EST


À (At) 19:12 -0500 16/12/02, newtontalk_at_ommos.net écrivait (wrote) :
> I'm doing some programming in NTK and was wondering if I could
>get automatically updated strings for a build-number and date.
>I want to those in the aboutbox of my app.
> With automatically updated, I mean the the build-number
>increments every time I build the package and the build date
>should reflect the date od the last build.

You can get the date updated at every build, but I'm not aware of any
way to increase the build number.

To get the time you can call Time() method at compile time.
E.g.

DefConst( 'kBuildTime, Time() );

You can also process this first, e.g.

begin
        local int theTime := Time();
        DefConst( 'kBuildDate, Date( theTime ) );
end;

Paul

-- 
NPDS: http://newton.kallisys.net:8080/
Apache: http://www.kallisys.com/

-- This is the NewtonTalk list - http://www.newtontalk.net/ for all inquiries List FAQ/Etiquette/Terms: http://www.newtontalk.net/faq.html Official Newton FAQ: http://www.chuma.org/newton/faq/



This archive was generated by hypermail 2.1.2 : Wed Jan 01 2003 - 10:02:36 EST