Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Versioning the build file on save (https://www.kinook.com/Forum/showthread.php?t=5637)

lockedude 01-17-2020 01:21 PM

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?

kinook 01-17-2020 03:55 PM

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

lockedude 01-23-2020 11:41 AM

Thanks, as always, for the quick response.


All times are GMT -5. The time now is 06:02 PM.


Copyright © 1999-2023 Kinook Software, Inc.