Помогите быдлокодеру. Delphi.
procedure TForm1.Button2Click(Sender: TObject);
var i:integer; a:boolean;
begin
a:=false;
if Edit1.Text= OpenDialog1.Filename then
a:=true;
If a=true then
Form2.Timer1.Enabled:=True;
i:=Form2.ShowModal
else
showmessage('Ошибка. Не Выбрано изображение');
end;
Че не так?