March 2000
Intermediate to advanced
576 pages
18h 13m
English
$Define Compiler Directive
{$Define Name}File
The $Define
directive defines Name as a conditional
symbol, for use in conditional compilation. Subsequent uses of the
$IfDef directive for
Name test positive. You can define the
same name more than once in a file. See the $IfDef
for an example. Conditional symbol names are not case sensitive.
Unlike macro definitions in C and C++, a definition in Delphi is a
simple flag. A name is defined or not defined. Test whether a name is
defined by using the $IfDef
and $IfNDef compiler directives. You can use the
same name as a conditional symbol and as an identifier in the same
file.
| $Else Compiler Directive, $Endif Compiler Directive, $IfDef Compiler Directive, $IfNDef Compiler Directive, $IfOpt Compiler Directive, $Undef Compiler Directive |
Read now
Unlock full access