5
procedure display;inline;
begin
  showmessage('sakthi');
end;

procedure TFrmInline.BtnDisplayClick(Sender: TObject);
begin
  display;
end;

In this program if i compile it shows the error that "declaration expected but inline found".

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
sakthi vel
  • 133
  • 1
  • 9

1 Answers1

10

Delphi 7 has no support for the inline keyword and will not inline functions.

The inline keyword was added in Delphi 2005: https://stackoverflow.com/a/8460108/

Community
  • 1
  • 1
David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
  • @sakthivel Welcome to Stack Overflow. If this answers your question and AFAIK it does then please accept it. [How does accepting an answer work](http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work) – Dalija Prasnikar Feb 17 '17 at 19:15