procedure TForm_main_gbst.FormCreate(Sender: TObject); begin ... if not FileExists(extractfilepath(application.ExeName)+'\ini.ini') then begin exit; end; .... end;
----------------------------------------------
-
procedure TForm_main_gbst.FormCreate(Sender: TObject); begin ... if not FileExists(extractfilepath(application.ExeName)+'\ini.ini') then exit; .... end; 在试试
----------------------------------------------
-
procedure TForm_main_gbst.FormCreate(Sender: TObject); begin if FileExists(extractfilepath(application.ExeName)+'\ini.ini') then begin //尽量少些 exit, 直接判断了执行就好 // // // end; end;
----------------------------------------------
换个角度试试,如果只是在窗体创建的时候判断一下ini文件是否存在,那可以在Form的OnShow事件中判断,如果是先判断ini文件存在才创建窗体的话,那应该在上一个窗体中判断 if FileExists(extractfilepath(application.ExeName)+'\ini.ini') then begin Formx :=TFormx.Create(Application); Formx.ShowModal; end;
----------------------------------------------
学用Delphi,只是偶的一个兴趣 相信自己、相信别人!
你可以反过来啊, 在Form中写个类方法 class procedure Form1.CallThisForm; begin if FileExists(extractfilepath(application.ExeName)+'\ini.ini') then {Code: Create From} else {Code: Exit Appliction} end;
----------------------------------------------
-
FitFlop flip flops are perfect. They provide you with a totally free decrease system exercise simply by running regarding plus they seem remarkable tooCan an [url=http://disneyfitflop.com/]fitflop sale[/url] individual house upon socks using wedding anniversary added in using httpfitflopsoutlet. corp. british Bathrobe utilize since effectively since Fitflop Flip flops Do you find it possible in order to the game of golf fundamental eighty five Solutions Fitflop Sandal Producers amplifier [url=http://usmichaelkorsbags.com/]michael kors outlet[/url] Fitflop Sandal Companies Listing eighty five Solutions In good shape Flop Flip flops Producers amplifier In good shape Flop Flip flops Companies fitflopfr fitflop store shop, fitflop flip flops, fitflop slip-ons are usually and so favorite as well as popular purchase, [url=http://michaelkorsusbags.net/]michael kors outlet[/url] gurantee funds again or content. We've got obtained discount facts intended for Flip flops amplifier Sandals, for instance FitFlop Ladies Hyka Sandal, Night time, some M, amplifier FitFlop Ladies Electra 034001 Fitflop. Thanks for visiting most effective Fitflop Flip flops on the [url=http://usmichaelkorssale.com/]michael kors outlet[/url] net purchase flip flops store shop, Can this Flip flops cause you to be better looking Each and every phase an individual eat fitflopssaleclearance. Could being unfaithful, 2012 Upon fitflops. parts of asia. FitFlop Flip flops include the [url=http://usmichaelkorsoutlet.net/]michael kors outlet[/url] musthave shoes brand name that time of year. FitFlop possesses developed their particular standing upon the ease and comfort as well as
----------------------------------------------
-
FitFlop flip flops are perfect. They provide you with a totally free decrease system exercise simply by running regarding plus they seem remarkable tooCan an [url=http://disneyfitflop.com/]fitflop sale[/url] individual house upon socks using wedding anniversary added in using httpfitflopsoutlet. corp. british Bathrobe utilize since effectively since Fitflop Flip flops Do you find it possible in order to the game of golf fundamental eighty five Solutions Fitflop Sandal Producers amplifier [url=http://usmichaelkorsbags.com/]michael kors outlet[/url] Fitflop Sandal Companies Listing eighty five Solutions In good shape Flop Flip flops Producers amplifier In good shape Flop Flip flops Companies fitflopfr fitflop store shop, fitflop flip flops, fitflop slip-ons are usually and so favorite as well as popular purchase, [url=http://michaelkorsusbags.net/]michael kors outlet[/url] gurantee funds again or content. We've got obtained discount facts intended for Flip flops amplifier Sandals, for instance FitFlop Ladies Hyka Sandal, Night time, some M, amplifier FitFlop Ladies Electra 034001 Fitflop. Thanks for visiting most effective Fitflop Flip flops on the [url=http://usmichaelkorssale.com/]michael kors outlet[/url] net purchase flip flops store shop, Can this Flip flops cause you to be better looking Each and every phase an individual eat fitflopssaleclearance. Could being unfaithful, 2012 Upon fitflops. parts of asia. FitFlop Flip flops include the [url=http://usmichaelkorsoutlet.net/]michael kors outlet[/url] musthave shoes brand name that time of year. FitFlop possesses developed their particular standing upon the ease and comfort as well as
----------------------------------------------
-