Question

procedure TForm1.Button2Click(Sender: TObject);
begin
showmassage('Create by rihsano');
end;

Delphi reports the following error:

 [Error] Unit1.pas(38): Undeclared identifier: 'showmassage'

One more question: what is "undeclared identifier"?

Was it helpful?

Solution

Replace showmassage with ShowMessage (case isn't important, but spelling is!).

"Undeclared identifier" means that Delphi cannot find the declaration that tells it what showmassage is, so it highlights it as an item that hasn't been declared.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top