delphi的关键字,总该有它的使用方法吧。

解决方案 »

  1.   

    是的!在他下面也可以声明,但在implementation之前声明的变量和在他之后申明的变量是不同的!
    implementation下面是当前单元(如unit1)的执行区域,也就是说在implementation下定义的过程和函数等只能在当前单元内访问.
    比如说你在当前单元(unit1)的implementation上面声明 
      var
      a:integer;
    在当前单元(unit1)的implementation下面声明 
     var
      b:integer;
     那么在其他单元中如unit2可定义a,但不可定义b!