On Sun, 01 Nov 2020 11:48:54 +0100, Bo Berglund via lazarus <lazarus@lists.lazarus-ide.org> wrote:
>I created this command line program: > >program Test; > >begin > Writeln('I will test the TForm check now:'); > {$IF DECLARED(TForm)} > Writeln('TForm is declared...'); > {$ELSE} > Writeln('Apparently TForm not declared'); > {$ENDIF} > Writeln('I will test the Forms check now:'); > {$IF DECLARED(Forms)} > Writeln('Forms is declared...'); > {$ELSE} > Writeln('Apparently Forms not declared'); > {$ENDIF} > >end. > >When I run it in a console: > >$ ./Test >I will test the TForm check now: >Apparently TForm not declared >I will test the Forms check now: >Apparently Forms not declared > >However in the Lazarus code editor the lines inside the {$ELSE} >clauses are shown as disabled even though these are the ones actually >present and running in the build... Forgot to state environment: FPC 3.0.4 Lazarus 2.0.8 OS: Raspbian Linux on RPi4 -- Bo Berglund Developer in Sweden -- _______________________________________________ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus