Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Using the Lazarus IDE
»
Options
»
How to enable {$BOOLEVAL ON} for all source files
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
docking IDE
by
Paolo
[
Today
at 09:34:57 pm]
Error when opening a proj...
by
Tomu
[
Today
at 09:11:54 pm]
Is this safe, changing fr...
by
mas steindorff
[
Today
at 08:46:31 pm]
TPeriodicTable
by
wp
[
Today
at 08:00:38 pm]
Windows 2026_7 update and...
by
Martin_fr
[
Today
at 07:46:38 pm]
try/except error
by
toby
[
Today
at 06:55:42 pm]
KOL4 Beta available.
by
schuler
[
Today
at 06:34:34 pm]
Putting a new file on a w...
by
J-G
[
Today
at 06:24:49 pm]
Engineering Software from...
by
Thaddy
[
Today
at 05:54:50 pm]
How to connect to MariaDb...
by
Thaddy
[
Today
at 05:51:17 pm]
GTK3 is now the default w...
by
zeljko
[
Today
at 03:40:04 pm]
Computers sure have come ...
by
Zvoni
[
Today
at 03:36:38 pm]
KOL x64
by
Thaddy
[
Today
at 02:06:48 pm]
Install new .deb over exi...
by
dbannon
[
Today
at 01:45:27 pm]
FastCGI vs. CGI
by
egsuh
[
Today
at 12:45:05 pm]
Many recent books on Laza...
by
Thaddy
[
Today
at 08:47:32 am]
Difference between @ and ...
by
DavidTh30
[
Today
at 07:58:00 am]
Isn’t this funny?
by
Joanna
[
Today
at 12:04:29 am]
Slow app start on M5 MacB...
by
Thaddy
[July 15, 2026, 03:36:57 pm]
Solpage
by
munair
[July 15, 2026, 01:47:30 pm]
Need help with fphttpserv...
by
Thaddy
[July 15, 2026, 12:58:30 pm]
Freepascal
by
Thaddy
[July 15, 2026, 12:39:23 pm]
Lazarus interface to Rexx...
by
Thaddy
[July 15, 2026, 12:38:10 pm]
Parsing error?
by
Thaddy
[July 15, 2026, 12:02:02 pm]
is there PDS reader/expor...
by
cdbc
[July 15, 2026, 10:55:30 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to enable {$BOOLEVAL ON} for all source files (Read 2623 times)
rpetges
Jr. Member
Posts: 98
How to enable {$BOOLEVAL ON} for all source files
«
on:
August 03, 2020, 09:39:32 pm »
Hi,
I need to activate full boolean evaluation for all my project files. I can add {$BOOLEVAL ON} into each single project file, but how can I add the difective in Lazarus so it gets used for all files ?
Many thanks.
Romain
Logged
PascalDragon
Hero Member
Posts: 6403
Compiler Developer
Re: How to enable {$BOOLEVAL ON} for all source files
«
Reply #1 on:
August 03, 2020, 09:59:50 pm »
Boolean evaluation can only be changed with the compiler directive, thus you need to use it in each file or put it into an include file and include that in each file.
Please note that with
$BOOLEVAL ON
code like the following will trigger an exception depending on the input values (in this case if
SomeObj
is
Nil
):
Code: Pascal
[Select]
[+]
[-]
if
Assigned
(
SomeObj
)
and
SomeObj
.
CheckSomething
then
«
Last Edit: August 04, 2020, 09:14:01 am by PascalDragon
»
Logged
rpetges
Jr. Member
Posts: 98
Re: How to enable {$BOOLEVAL ON} for all source files
«
Reply #2 on:
August 03, 2020, 11:48:55 pm »
Many thanks for the information.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Using the Lazarus IDE
»
Options
»
How to enable {$BOOLEVAL ON} for all source files
TinyPortal
© 2005-2018