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:
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.
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.
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:
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.
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...
PB Forums : Proof positive that 2 heads (or more...) are better than one