Home computickets Delphi gives an error "Not Enough Actual Parameters"

Delphi gives an error “Not Enough Actual Parameters”

Author

Date

Category

Explain what is wrong here ?????

procedure tform8.tmr1timer (sender: tobject);
Begin.
 ...
 Application.MessageBox ('My message.' '); // [Error] Unit8.pas (38): Not Enough Actual Parameters
end;


Answer 1, Authority 100%

TapPplication.MessageBox method in Delphi has the kind of

function messagebox (Const Text: Pchar; Const Caption: Pchar; flags: longint = mb_ok): integer;

on your “photo” is difficult to see anything, but the set of parameters when the call clearly does not correspond to the description of the method. What, by the way, the mistake in the first picture says.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions