Pergunta

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"?

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top