D
dongbear
Unregistered / Unconfirmed
GUEST, unregistred user!
在做程序的时候,想自己做个函数,调用一下,
所以,声明了一个函数,结果同不过,不知道是哪里除了问题。
我试过,放到public,preative,下都不行。为什么呀。
[Error] Unit1.pas(11): Unsatisfied forward or external declaration: 'TForm1.test'
程序:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
type
TForm1 = class(TForm)
private
procedure test();
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
end.
所以,声明了一个函数,结果同不过,不知道是哪里除了问题。
我试过,放到public,preative,下都不行。为什么呀。
[Error] Unit1.pas(11): Unsatisfied forward or external declaration: 'TForm1.test'
程序:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
type
TForm1 = class(TForm)
private
procedure test();
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
end.