qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Range-Checking Directive
  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.