◄Compiler Directives► ◄Contents► ◄Index► ◄Back► {$R<+│->} Description Switches on or off range checking of values used in array indexing, assignments, and parameter passing. The default is {$R+}. {$R+} Checks if assignments to variables of scalar and subrange types are within declared bounds; also checks array and indexed-string expressions. If a declared range is overrun, the program is terminated with a run-time error message. {$R-} Turns off {$R+}. Use Range Checking while debugging to detect values that venture out of their declared range. Disable it in final versions for smaller, faster code.