[Lazarus] Get LCL revision or version via ifdef
Marcos Douglas
md at delfire.net
Sun Oct 2 20:19:32 CEST 2011
2011/10/2 silvioprog <silvioprog at gmail.com>:
> 2011/10/2 Marcos Douglas <md at delfire.net>:
>> Simple, just use .inc in unit files. Do not put logical in .lpr files.
>>
>> Marcos Douglas
>
> Did not work. x(
>
> See demo in attached.
Sorry, I understood.
The LCLVersion unit contains constants, see:
const
lcl_major = 0;
lcl_minor = 9;
lcl_release = 31;
lcl_patch = 0;
lcl_fullversion = ((lcl_major * 100 + lcl_minor) * 100 +
lcl_release) * 100 + lcl_patch;
lcl_version = '0.9.31';
So, just use them.
See http://www.lazarus.freepascal.org/index.php?topic=7453.0
Marcos Douglas
More information about the Lazarus
mailing list