如果仅仅是名称好办,只是不知道你什么意思,想做什么。<br>unit Unit1;<br><br>interface<br><br>uses<br> Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,<br> Dialogs, StdCtrls;<br><br>type<br> TForm1 = class(TForm)<br> Button1: TButton;<br> procedure Button1Click(Sender: TObject);<br> private<br> { Private declarations }<br> public<br> { Public declarations }<br> class function ClassName: ShortString;<br> end;<br><br>var<br> Form1: TForm1;<br><br>implementation<br><br>{$R *.dfm}<br><br>class function TForm1.ClassName: ShortString;<br>begin<br> Result := 'Hello';<br>end;<br><br>procedure TForm1.Button1Click(Sender: TObject);<br>begin<br>ShowMessage(Self.ClassName);<br>end;<br><br>end.<br><br>