Jump to content

A doubt about anonymous procs


dionel1969
 Share

Recommended Posts

Have you tested it?

 

Yes, of course and it does not work. I have a unit with some "proxy" functions or procedures to avoid write some parameters for example:

 

procedure AskAsConfirmation(const aMsg: String; aCallBack: TXXXXX); inline;
procedure AskAsError(const aMsg: String; aCallBack: TXXXXX); inline;
procedure ShowWarning(....

 

and so on.

 

They are inline procedures, so they do not generate extra "call codes", just to avoid write [mbYes, mbNo], mtWarning or mtConfirmation and so on all the time. Just for commodity.

 

In this case it does not work.

 

Prueba de Anonymous Proc.rar

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...