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 xe5获取android imei id

Delphi用idhttp提交自定义cookie

检查是否在Delphi xe7中启用或禁用了android蓝牙

Delphi 关闭sql server 数据库所有使用连接

Delphi 删除动态数组的指定元素

Delphi-edit中只能输入数字且只能输入一个小数点

Delphi android 关闭应用程序对话框询问

Delphi 关闭显示器

floattostr 将“浮点型”转换成“字符型”

Delphi 从字符串提取字符串

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



打赏

取消

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

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

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

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

评论

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