Show: Delphi C++
Display Preferences

IFOPT directive (Delphi)

From RAD Studio
Jump to: navigation, search

Go Up to Delphi Compiler Directives (List) Index

Type

Conditional compilation

Syntax

{$IFOPT switch}



Remarks

Compiles the Delphi source code that follows it if switch is currently in the specified state. switch consists of the name of a switch option, followed by a + or a - symbol. For example,


{$IFOPT R+}
	 Writeln('Compiled with range-checking');
	{$ENDIF}

compiles the Writeln statement if the $R option is currently active.

Personal tools
RAD Studio 10.2 Tokyo
In other languages
Previous Versions
Assistance