unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
procedure SecondProcedure(woot: string; waat: integer);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
SecondProcedure('heehee I''m doing delpheeee!', 1234);
// You could also do Form1.SecondProcedure but because both procedures
// are part of Form1 anyhow, it's not needed. Read up on Object Oriented
// Programming if you don't understand.
end;
procedure TForm1.SecondProcedure(woot: string; waat: integer);
begin
ShowMessage(woot + ' ' + IntToStr(waat));
end;
end.