Thanks, I will look at the suggestions
Mattias Gaertner wrote:
On Wed, 03 Mar 2010 21:33:45 +0200
Wimpie Nortje wrote:
Hello everybody,
Is there a macro or function that gives the current procedure's name?
E.g.
procedure TClass.SomeProc;
begin
writeln(Format('This procedure's name is
On Wed, 03 Mar 2010 21:33:45 +0200
Wimpie Nortje wrote:
> Hello everybody,
>
> Is there a macro or function that gives the current procedure's name?
>
> E.g.
>
> procedure TClass.SomeProc;
> begin
> writeln(Format('This procedure's name is %s', [THE_MACRO]));
> end;
If you use Lazarus you c
On 03 Mar 2010, at 20:33, Wimpie Nortje wrote:
> Is there a macro or function that gives the current procedure's name?
There is a function, but only for methods:
class function TObject.MethodName(address : pointer) : shortstring;
Simply pass the address of a method as argument. There is
Hello everybody,
Is there a macro or function that gives the current procedure's name?
E.g.
procedure TClass.SomeProc;
begin
writeln(Format('This procedure's name is %s', [THE_MACRO]));
end;
should print
This procedure's name is TClass.SomeProc
or
This procedure's name is SomeProc