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
  • 587,191
  • 41
  • 1,025
  • 1,442
sakthi vel
  • 103
  • 8

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
  • 587,191
  • 41
  • 1,025
  • 1,442
  • @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