Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
Auto-Increment Version

 
Post new topic   Reply to topic    Forum Index -> ZBasic IDE
Author Message
Don_Kirby



Joined: 15 Oct 2006
Posts: 329
Location: Long Island, New York

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

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
Posts: 2499
Location: Portland, OR

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

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:   
Post new topic   Reply to topic    Forum Index -> ZBasic IDE Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 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