Explain what is wrong here ?????

procedure TForm8.tmr1Timer(Sender: TObject); begin ... Application.MessageBox('Мое сообщение.'); // [Error] Unit8.pas(38): Not enough actual parameters end; 

Error screenshot

  • 2
    Give the entire source code. In this picture it is impossible to "make a diagnosis." - Embedder
  • Added a photo ..) - Kirill Chukhlib

1 answer 1

The TApplication.MessageBox method in Delphi is

 function MessageBox(const Text: PChar; const Caption: PChar; Flags: Longint = MB_OK): Integer; 

According to your "photo" it is difficult to see something, but the set of parameters when calling is clearly not consistent with the description of the method. What, by the way, is stated in the error message on the first picture.

  • Thank you)))))))) - Kirill Chukhlib