Link to home
Start Free TrialLog in
Avatar of Norm-al
Norm-alFlag for United States of America

asked on

Unstatisfied forward or external decleration with copied code

I copied this snippet from a sample online and I get this error.  Running their basic sample app it runs fine.  Any ideas?

procedure UpdateRecordPictureByFileName(ADataController: TcxCustomDataController;
  AFileName: string; ARecordIndex, APictureColumnIndex: Integer);
var
  AValue: string;
  APicture: TPicture;
begin
  AFileName := ExtractFilePath(Application.ExeName) + 'Images\' +
             AFileName + '.jpg';
  if FileExists(aFileName) then
  begin
    APicture := TPicture.Create;
    try
      APicture.LoadFromFile(AFileName);
      SavePicture(APicture, AValue);
    finally
      FreeAndNil(APicture);
    end;
  end
  else
    AValue := '';
  ADataController.Values[ARecordIndex, APictureColumnIndex] := AValue;
end;

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Norm-al
Norm-al
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial