[Lazarus] Getting a program's "true name"
Sven Barth
pascaldragon at googlemail.com
Mon Oct 25 15:05:35 CEST 2010
Am 25.10.2010 10:25, schrieb Mark Morgan Lloyd:
> The point I was trying to make- which I didn't do very well- was that if
> something is usable in an ifdef if can be used to exclude code which is
> syntactically wrong for the current compiler, or references public
> properties which don't exist in the current LCL.
>
> I don't think that you can do that if you're getting a value from
> lclversion or whatever, the decision has- in effect- to be made at a
> preprocessor level.
Did you know that you can use Pascal constants (and thus the constants
defined by lclversion unit) in {$if ...} conditionals? For an example
see the "Button1Click" method in examples/lclversion/Unit1.pas.
Regards,
Sven
More information about the Lazarus
mailing list