[fpc-pascal] (no subject)
Howard Page-Clark
hdpc at talktalk.net
Thu Feb 23 17:30:05 CET 2012
On 23/2/12 4:17, Everton Vieira wrote:
> Is there any plans to implement public procedures/function of a class
> that can be used without been necessary to create the class?
I presume you know about class methods such as TObject's
class function ClassName : shortstring;
that you can use like this
procedure TForm1.Button1Click(Sender: TObject);
begin
ShowMessageFmt('Class name of TEdit is %s', [TEdit.ClassName]);
end;
without needing to instantiate a TEdit instance?
More information about the fpc-pascal
mailing list