Auto-Increment Version

Questions and discussion about the ZBasic IDE.
Post Reply
Don_Kirby
Posts: 341
Joined: 15 October 2006, 3:48 AM
Location: Long Island, New York

Auto-Increment Version

Post by Don_Kirby »

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
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: Auto-Increment Version

Post by dkinzer »

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: Select all

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.
- Don Kinzer
Post Reply