Page 1 of 1
[Imlemented] PB-Constants for Version Info Fields
Posted: Wed Sep 24, 2014 4:00 pm
by Josh
In
Compiler>Compiler Options>Version Info i can set informations which are are shown in the file properties. To use this informations in an 'Aboutbox', would be nice to get this values in PB constants like:
Code: Select all
#PB_Version_FileVersion
#PB_Version_ProductVersion
#PB_Version_CompanyName
#PB_Version_ProductName
....
....
#PB_Version_Language
I don't see any possibility to get this informations on a other way when using PB projects. In this case the versions fields are stored in the pbp file and this file is only updated by closing the project.
Re: PB-Constants for Version Info Fields
Posted: Wed Sep 24, 2014 4:19 pm
by freak
Its not ideal, but you can define those constants yourself in the compiler options under "Constants". This way there are still two places to update if you change the version, but at least both are in the compiler options and not somewhere in the source code.
Re: PB-Constants for Version Info Fields
Posted: Tue Nov 18, 2014 8:43 pm
by Ramses800
Josh wrote:In
Compiler>Compiler Options>Version Info i can set informations which are are shown in the file properties. To use this informations in an 'Aboutbox', would be nice to get this values in PB constants like:
Code: Select all
#PB_Version_FileVersion
#PB_Version_ProductVersion
#PB_Version_CompanyName
#PB_Version_ProductName
....
....
#PB_Version_Language
+1
Re: PB-Constants for Version Info Fields
Posted: Wed Nov 19, 2014 6:59 pm
by PureGuy
+1
Re: PB-Constants for Version Info Fields
Posted: Mon Dec 15, 2014 1:33 am
by glsevans
+1
Re: PB-Constants for Version Info Fields
Posted: Mon Dec 15, 2014 6:39 am
by Little John
+1
Re: PB-Constants for Version Info Fields
Posted: Tue Dec 16, 2014 4:07 am
by Rescator
freak wrote:Its not ideal, but you can define those constants yourself in the compiler options under "Constants". This way there are still two places to update if you change the version, but at least both are in the compiler options and not somewhere in the source code.
A better solution would be if "Compiler>Compiler Options>Version Info" could use constants from "Compiler>Compiler Options>Constants>Custom constants" in addition to the compile and build constants there.
Re: PB-Constants for Version Info Fields
Posted: Tue May 12, 2015 6:26 am
by Blue
Rescator wrote:[...]A better solution would be if "Compiler>Compiler Options>Version Info" could use constants from "Compiler>Compiler Options>Constants>Custom constants" in addition to the compile and build constants there.
+1
Until something better is implemented (and I hope something gets implemented before too long...), Freak's suggestion is an intereting and practical workaround. Besides, I'm happy to finally discover some use for those custom constants...

Re: PB-Constants for Version Info Fields
Posted: Sat Jun 06, 2015 1:30 pm
by Korolev Michael
+1
Why PB doesn't have version management constants?
Re: PB-Constants for Version Info Fields
Posted: Sun Jun 07, 2015 8:40 am
by oreopa
I haven't +1 this? ok.
+1
Re: [Imlemented] PB-Constants for Version Info Fields
Posted: Sat Jan 02, 2016 12:59 am
by Ramses800
I just noticed that this topic has been renamed to [Imlemented], does this mean that this function actually exist now?
Re: [Imlemented] PB-Constants for Version Info Fields
Posted: Sat Jan 02, 2016 1:12 am
by Mohawk70
Ramses800 wrote:I just noticed that this topic has been renamed to [Imlemented], does this mean that this function actually exist now?
Can we get official confirmation and details ?
Re: [Imlemented] PB-Constants for Version Info Fields
Posted: Sat Jan 02, 2016 11:06 am
by Fred
Re: [Imlemented] PB-Constants for Version Info Fields
Posted: Sat Jan 02, 2016 1:58 pm
by Mohawk70
Thank you Fred ! What version is this in ?
Re: [Imlemented] PB-Constants for Version Info Fields
Posted: Sat Jan 02, 2016 9:34 pm
by Korolev Michael
5.4x