CnPack Forum


 
Subject: 建议在 "INI读写单元向导" 中增加部分内容。
Net2k
新警察
Rank: 1



UID 67625
Digest Posts 0
Credits 4
Posts 1
点点分 4
Reading Access 10
Registered 2012-7-25
Status Offline
Post at 2015-5-18 00:24  Profile | Blog | P.M. 
建议在 "INI读写单元向导" 中增加部分内容。

我一般会在生成的文件后增加这样一段,能不能直接放到里面去?

initialization
  IniOptions := TIniOptions.Create;
  AppPath := ExtractFilePath(Application.Exename);
  IniOptions.LoadFromFile(AppPath + ChangeFileExt(ExtractFileName(Application.ExeName), '.ini'));

finalization
  IniOptions.SaveToFile(AppPath + ChangeFileExt(ExtractFileName(Application.ExeName), '.ini'));
  IniOptions.Free;
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2015-5-18 11:08  Profile | Blog | P.M. 
加载和存还是留给操作者自己控制吧,万一他不想结束时自动存呢。
Top
 




All times are GMT++8, the time now is 2024-11-23 19:47

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.008268 second(s), 7 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP