CreateaNewIsland1Click is a method of Tmain_island_form, and hence has to be invoked against a Tmain_island_form instance such as main_island_form.

On 05/23/2010 02:56 AM, Peter E Williams wrote:
Hi All,

I am now getting an identifier not found error. In the error messages
window, if I select Help the lazarus cannot find the local HTML help
file. I cannot find my way around the lazarus website. :-(

file set_max.pas
Uses
main_island;

{ set_max_form }

procedure Tset_max_form.OK_buttonClick(Sender:
TObject);
begin
line 42
CreateaNewIsland1Click(Sender);
//
main_island.CreateaNewIsland1Click(Sender);
end;

Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 2.4.0-2 [2010/03/06] for i386
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for i386
Compiling project1.pas
Compiling set_max.pas
set_max.pas(42,25) Error: Identifier not found "CreateaNewIsland1Click"
set_max.pas(50) Fatal: There were 1 errors compiling module, stopping

file main_island.pas
type
   Tmain_island_form = class(TForm)
<snip>
     procedure make_an_island;
<snip>
   private
     { Private declarations }
   public
     { Public declarations }
     procedure CreateaNewIsland1Click(Sender: TObject);
   end;
<snip>
var
   main_island_form : Tmain_island_form;

procedure Tmain_island_form.CreateaNewIsland1Click(Sender: TObject);
begin
   make_an_island;
end; { CreateaNewIsland1Click }



--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to