引用的时候掌握一个原则:
对于要引用的单元中的全局变量, 有可能有写操作(赋值)的, 方在interface中的uses
对于要引用的单元中的全局变量, 没有写操作的, 方在implementation中的uses对于对象, 只要针对对象变量本身没有写操作的, 也应该放在implementation中.
比如:unit a;type ta=class(tobject)
     public
       i:integer;
     end;var aa:ta;那么对于 aa.i:=10;之类的, 就只要在implementation的uses中声明一下a就可以了
而对:
  aa:=ta.create; 或者:var b:ta;
    b:=ta.create;
    b.i:=10;
    aa:=b;
之类的, 就要放在interface中声明了.其实interface个implementation中的uses有点象函数的变量声明, var=interface uses,
可以带回返回值, 而implementation uses就只能引用了.