type
  TForm1 = class(TForm)
  function find(tofind,replacewith:string):string;//我要声明的函数
  private
    { Private declarations }
  public
    { Public declarations }
  end;
                但出现这种情况,是什么原因 ?
                
      【Error】unit1.pas(11):unsatisfied forward or external declaration:'TForm1.find‘       
       [fatal error] project2.dpr(5): could not compile used unit 'unit.pas'      
 

解决方案 »

  1.   

    type
    TForm1 = class(TForm)
    private
    { Private declarations }//或者放在这里 看是 公有函数的还是私有函数
    public
      function find(tofind,replacewith:string):string;//我要声明的函数  
    //鼠标点在这里 用快捷 crtl+shift + c 生成函数  
    //
    end;
      

  2.   

    crtl+shift + c  这是干什么的?
      

  3.   

    没有函数的实现就是delphi帮你自动生存一个空的函数实现!