Yes, you need to declare your procedure within the form class declaration. You can make your procedure private, public or published depending on how you need to access it - there are some excellent resources within this site for more information.
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
Edit1: TEdit;
procedure Button1Click(Sender: TObject);
private
{ private declarations }
procedure myProcedure;
public
{ public declarations }
end;
var
Form1: TForm1;
implementation
procedure TForm1.Button1Click(Sender: TObject);
begin
myProcedure;
end;
procedure TForm1.myProcedure;
begin
Edit1.Text := 'Hello World';
end;
{$R *.lfm}
end.
geno.