Where do I define symbols tested with {$IFDEF}?

dzibul picture dzibul · Dec 25, 2010 · Viewed 10.1k times · Source

When I use Delphi directives in code, like:

{$IFDEF something}
.
.
.
{$ENDIF}

Where do I assign the word 'something' in the project? I tried in some places in project options but it didn't work. Guess I didn't find the correct one.

Answer

David Heffernan picture David Heffernan · Dec 25, 2010

It's in the Conditional Defines slot under Project | Options, which looks like this on D2010:

Delphi Project Options dialog