Jump to content

Recommended Posts

Posted

Hello:

 

It is possible to do this

 


procedure AskAsConfirmationA(const aMsg: String; aCallBack: TUniDialogCallBackAnonProc); inline;
begin
 MessageDlg(aMsg, mtConfirmation, [mbYes,mbNo], aCallBack);
end;

 

????

Posted

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

Posted

Your test case works perfectly in XE.

 

Then, I have to migrate from 2009 TO XE. ja ajajajaj. Let's see in the near future. It is not a a big reason, but is one more.

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.

×
×
  • Create New...