[Lazarus] Get LCL revision or version via ifdef

Alexsander Rosa alexsander.rosa at gmail.com
Tue Oct 4 14:32:11 CEST 2011


uses LCLVersion;

Edit1.Text := lcl_version + '.' + IntToStr(lcl_patch);

2011/10/4 silvioprog <silvioprog at gmail.com>

> 2011/10/2 Marcos Douglas <md at delfire.net>:
> >
> > 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
>
> I don't found the solution in the link above. :/ If I understand it,
> the solution would be to use macros?
>
> --
> Silvio Clécio
> ===============================================
> Blog - <silvioprog.com.br>
> Twitter - <twitter.com/silvioprog>
> Facebook - <facebook.com/silvioprog>
> LazSolutions - <code.google.com/p/lazsolutions>
> LazWebSolutions - <code.google.com/p/lazwebsolutions>
> Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR>
> ===============================================
>    * Conheça nosso canal IRC sobre Lazarus: #lazarus-br *
> ===============================================
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 
Atenciosamente,
Alexsander da Rosa
http://rednaxel.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20111004/d8a2b0e4/attachment-0003.html>


More information about the Lazarus mailing list