Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-17-2020, 12:21 PM
lockedude lockedude is online now
Registered User
 
Join Date: 09-07-2011
Posts: 10
Versioning the build file on save

I am looking for a way to automatically version the build (.bld) file whenever it is saved.

I am often modifying a build across several machines and it is difficult to know which might be the latest state of modification. Of course this could be easily fixed if I simply kept better track of the updates and scripts! But it got me thinking if there would be a way to say capture the Save procedure and interject maybe a project macro update with a timestamp or version? I realize there is a timestamp on the .bld file itself, but it may be more useful to have the ability to create my own version indicator that would be more applicable. There are obvious ways to accomplish this by taking separate steps on my own, but I am looking for possible automation.

I am aware of the ability to perform a project save if it is determined that IsModified is true, but I was looking to tie directly into the save or Ctrl + S functionality. Also, I am looking to do this whether I am simply modifying the script or in some form of build of the script and decide to save.

Would this even be possible?
Reply With Quote
  #2  
Old 01-17-2020, 02:55 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,752
There is not currently a script event when saving that you could hook into.

You could use one of the build script events to update a project macro and save the project.

https://kinook.com/VisBuildPro/Manual/scriptevents.htm

https://kinook.com/VisBuildPro/Manua...osproperty.htm

https://kinook.com/VisBuildPro/Manua...savemethod.htm
Reply With Quote
  #3  
Old 01-23-2020, 10:41 AM
lockedude lockedude is online now
Registered User
 
Join Date: 09-07-2011
Posts: 10
Thanks, as always, for the quick response.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 03:28 AM.


Copyright 1999-2019 Kinook Software, Inc.