R (Compiler directive)

The compiler directive R controls, if the compiler generates code that checks the indices of arrays or enumeration types for being within the allowed range. If rangechecking is enabled a runtime error is generated in the case of the index being outside the range.

Syntax

 * {$R+} or {$RANGECHECKS ON}: rangechecking enabled for the following code segments
 * {$R-} or {$RANGECHECKS OFF}: rangechecking disabled for subsequent code segments