Forum Index
Auto-Increment Version

 
Author Message
Don_Kirby



Joined: 15 Oct 2006

Posted: 19 May 2007, 12:23 PM    Post subject: Auto-Increment Version

I've been looking at the conditional compilation directives in the hopes that I would find a method to automatically increment the version/revision numbers of an application (akin to VB). I have yet to succeed. Is there a way to store a variable in the IDE or in the code, which the IDE can change at compile time? In the application, the version and revision information is stored as persistent integers, which the IDE cannot see.

-Don
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Location: Portland, OR

Posted: 19 May 2007, 15:22 PM    Post subject: Re: Auto-Increment Version

Don_Kirby wrote:
Is there a way to store a variable in the IDE or in the code, which the IDE can change at compile time?

The only way that I can imagine to do this is to replace the compile command with one that invokes a special application to modify the source code and then, in turn, invoke the compiler.

The way to replace the compile command is to place a line like that below in your User Properties file:
Code:
ZBasic=d:/path/to/my-compile-command.exe

The IDE will add command line options to this command when it invokes the compiler. These options will need to be passed on to the compiler when you launch it, of course.
Back to top
Display posts from previous:   
Page 1 of 1

 



ZBasic Microcontrollers Home
All content Copyright © 2005, 2006, 2007, 2008 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group