unit Unit2; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; type { TForm2 } TForm2 = class(TForm) Button1: TButton; Button2: TButton; procedure Button1Click(Sender: TObject); procedure Button2Click(Sender: TObject); private { private declarations } public { public declarations } end; var Form2: TForm2; const mrHochhausraetsel = 314; mrBuchstabenraetsel = 315; implementation {$R *.lfm} { TForm2 } procedure TForm2.Button1Click(Sender: TObject); begin modalResult:=mrHochhausraetsel; end; procedure TForm2.Button2Click(Sender: TObject); begin modalResult:=mrBuchstabenraetsel; end; end.