if edt1.modified=False thenshowmessage('您怎么能什么都不输入呢?睡着了吗?')elsebeginForm2.Show ;Form1.hide ;end;
应该这样才不会执行:else begin Form2.Show ; Form1.hide ;end;