Delphi 将listview保存为TXT


本文整理自网络,侵删。

 
var
  lList: Tstrings;
  i: integer;
begin
   lList:= TStringList.Create;
   try
     for i:=0 to ListView.Items.Count -1 do
      LList.add(listview1.items[i].caption + '|' + listview1.items[i].subitems.strings[0] +'|' + listview1.items[i].subitems.strings[1]);
      LList.SavetoFile('aaaaa.txt');
   finally
      lList.Free;
   end;
end;

来源:https://blog.csdn.net/penjie0418/article/details/7182675

相关阅读 >>

Delphi 监视剪贴板内容

Delphi中ns和ms时间的获取方法

Delphi实现md5算法

delph hash类

Delphi中分隔字符串函数的使用

DelphiDelphi提升进程权限为debug权限

字符串截取小例子Delphi源代码

Delphi urldownloadtofile 支持进度条

Delphi hmacsha256

Delphi tidhttp抓取页面信息

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



打赏

取消

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

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

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

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

评论

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