主题:请问错在那???????
请问错在那???????
我要定义一个test类,
在这个类中定义一个temp方法;
不为什么出错?
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
type
temp=class
begin
procedure test();
begin
ShowMesage('sdf');
end;
end;
end.
我要定义一个test类,
在这个类中定义一个temp方法;
不为什么出错?
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
type
temp=class
begin
procedure test();
begin
ShowMesage('sdf');
end;
end;
end.