I think it is "if @A = @func1".
It gets a bit trickier if they're method pointers, but if the functions are
published, you can use
if @A = MethodAddress('Func1')
Ray
"Danffer Liu" <danff...@263.net> wrote in message news:3c7250c3_1@dnews...
Ray
"Tomas Särnhammar" <tNomOas.sSa...@spam.iquity.com> wrote in message
news:3c726506_1@dnews...
> Even better is to cast to TMethod and compare the Code parts. This always
> works. See code snip from my current project below:
>
> if (ListView <> nil) and
> Assigned(ListView.OnDblClick) and
> (TMethod(ListView.OnDblClick).Code =
> @TDynamicListItemPopup.DefaultActionExecute) then
>
> rgs
>
> Tomas Särnhammar
>
>
>
>
Even better is to cast to TMethod and compare the Code parts. This always