Delphi procedure  - Unsatisfied forward or external declaration.

Nicholasjf
Nicholasjf used Ask the Experts™
on
You can tell I'm a newbie. But everyhthing I've read tells me this should work.

unit AdvertisingAnalysisU;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, pngimage, StdCtrls, jpeg, ExtCtrls, ComCtrls;

type
  TForm19 = class(TForm)
    Button1: TButton;
    Procedure GetAdvertisingSpend;


     private
    { Private declarations }

  public
    { Public declarations }

  end;

var
  Form19: TForm19;

implementation

{$R *.dfm}

Procedure GetAdvertisingSpend;
var a: integer;
begin
  a:=1;
end;
end.


So I get the message unsatisfied forward or external declaration on the GetAdvertisingSpend procedure.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
GetAdvertisingSpend is a member of the TForm19 class therefore your implementation should look like this:

Procedure TForm19.GetAdvertisingSpend;
var a: integer;
begin
  a:=1;
end;

Author

Commented:
Thanks. I see.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial