Jump to content

E2250 There is no overloaded version of 'MessageDlg' that can be called with these arguments


Recommended Posts

Posted

I have UniGUIDialogs and no VCL.Dialogs in the Uses line. However, when I make the following call:-

messagedlg('Test Message', mtConfirmation, mbYesNo, SomeFunc);

Delphi 10S throws up an error of "E2250 There is no overloaded version of 'MessageDlg' that can be called with these arguments".

What am I missing here?

--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1504)
 

Posted

I found the problem in that the callback procedure was missing a parameter of "Sender : TComponent" as like

procedure TUniForm.SomeFunc(Sender : TComponent; Res : Integer);
begin
      // Some code
end;

  • Upvote 1

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...