Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1  
Old 01-17-2020, 01: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, 03:55 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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, 11: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


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 09:24 PM.


Copyright © 1999-2023 Kinook Software, Inc.