unit unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, raetselFileUnit; type { TForm1 } TForm1 = class(TForm) procedure FormCreate(Sender: TObject); private { private declarations } public { public declarations } end; var Form1: TForm1; implementation {$R *.lfm} uses unit2; { TForm1 } procedure TForm1.FormCreate(Sender: TObject); begin case form2.showmodal of mrBuchstabenraetsel: ; mrHochhausraetsel: ; end; end; end.