Delphi SaveTextFileDialog 用法


本文整理自网络,侵删。

 
var D: TSaveTextFileDialog;
begin
    D := TSaveTextFileDialog.Create(nil);
    try
      D.Title := 'Exportar to File';
      D.DefaultExt := 'txt';
      D.Filter := 'Text File|*.txt|All Files|*';

      if D.Execute then
        M.Lines.SaveToFile(D.FileName, D.Encodings.Objects[D.EncodingIndex] as TEncoding);

    finally
      D.Free;
    end;

相关阅读 >>

Delphi禁用,启用网卡

Delphi 文件占坑法过360查杀

Delphi 枚举所有电脑磁盘

Delphi 让程序自己更新本程序

Delphi 实现软件版验证码

Delphi 最快字符串查找(匹配)算法

Delphi从excel读取数据存入数据库demo

[Delphi]钩子(hook)机制的使用

Delphi xe android的所有权限按照分类总结说明

Delphi stringgrid之属性大全

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...