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?

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to