在delphi中怎样终止程序的运行?我用了mainform.freee,mainfrom.close,application.Terminate,exit,都不能终止程序的运行。 程序如下: if reg_dat.OpenKey('\Sofware\售后服务\程式设置',true)=false then begin showmessage('▲没有设置数据库服务器!'); application.Terminate; form800.Free; exit; end 结果执行完上面的语句,程序不能终止,仍继续执行其它语句了
----------------------------------------------
-