unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TForm1 = class(TForm)
btn1: TButton;
procedure btn1Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
procedure test(str: string; s: string; b : Boolean=false); overload;
procedure test(str: string; a : array of Integer; b : Boolean=false); overload;
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.test(str: string; s: string; b : Boolean=false);
begin
showMessage(s);
end;
procedure TForm1.test(str: string; a : array of Integer; b : Boolean=false);
begin
showMessage(inttostr(a[1]));
end;
procedure TForm1.btn1Click(Sender: TObject);
begin
test('asd', [1,2,3,4] {,false});
end;
end.