Solved

Unstatisfied forward or external decleration with copied code

Posted on 2013-06-14
1
473 Views
Last Modified: 2013-06-14
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

0
Comment
Question by:Bianca
1 Comment
 

Accepted Solution

by:
Bianca earned 0 total points
ID: 39248547
Silly me. I missed the form name in the declaration.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now