{$IFOPT R+}
  {$DEFINE CKRANGE}
  {$R-}
{$ENDIF} 是什么意思哦?请各位指教

解决方案 »

  1.   

    看看delphi的帮助
    $IFOPT是判断一个开关参数的状态
    R+表示R的开关是开的
    {$DEFINE CKRANGE}表示定义一个编译环境变量CKRANGE{$ENDIF} 结束该判断
    Type Conditional compilation
    Syntax {$IFOPT switch}
    ResCompiles 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.