为什么我给控件添加代码老师添不上去,一双击空间就出现
cannot find implemention of method n4click,这是怎么回师,请大下指点??

解决方案 »

  1.   

    把接口接分的    procedure n4Click(Sender: TObject);删掉
      

  2.   

    type
       ...
       procedure form1.n4click(...);         //删掉这一行
       ...
       
      

  3.   

    加入向下面button1事件:
    unit Unit1;interfaceuses
      Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
      Dialogs, StdCtrls;type
      TForm1 = class(TForm)
        Button1: TButton;
        procedure Button1Click(Sender: TObject);//这里珊了
      private
        { Private declarations }
      public
        { Public declarations }
      end;var
      Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);//珊了
    begin//珊了
    showmessage('别着急!');//珊了
    end;//珊了end.
    从新双击,试试
      

  4.   

    不行啊,我把他删除了也不行,现在不管哪个空间都不允许添加代码了!
    还有这样的提示:cannot find source location to add method n4click,'end. ' or
    initiallzation not find in unit source.
    end.在程序里有啊,initiallzation是什么意思?