Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > VCL

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 06-23-2012, 06:01 PM
GTunlocker GTunlocker is offline
Junior Member
 
Join Date: Jul 2011
Posts: 15
Default Need Some Help About Listview

Hi all
abaut listview

var
Sl : Tstringlist;
begin
Sl: Tstringlist.creat;
sl.savetofile....etc
Quote:
and this some result my text from save file

Name ...........Version......... Size ...... Created
--------------------------- ------- --------
frame_ap---- 1.0.0.480 ---- 64140 --- Sun Feb 20 03:52:37 2011
frame_ap-1-- 1.0.0.480 ---- 73552----Sun Feb 20 03:52:37 2011
frame_ap-2-- 1.0.0.480---- 84088 --- Sun Feb 20 03:52:37 2011
frame_ap-3-- 1.0.0.480---- 80340 --- Sun Feb 20 03:52:37 2011
frame_ap-4---1.0.0.480 ---- 63368 --- Sun Feb 20 03:52:37 2011
how to add my result into listview?

thanks in advance

br
GTunlocker

Last edited by GTunlocker; 06-23-2012 at 06:08 PM.
Reply With Quote
  #2  
Old 06-26-2012, 11:20 AM
GTunlocker GTunlocker is offline
Junior Member
 
Join Date: Jul 2011
Posts: 15
Default

i have some problem

into *.Tmp file :
Quote:
Some_Name_File;some_Version_info;Some_Size_offile;
how to split this Text
Colums: Name Version Size
Quote:
SL:= Tstringlist.create;
try
Sl.loadfromfile('namefile.tmp');
for i:=0 to SL.count-1 do
with Listview.items.add do
begin
subitem.commatext:= SL[i];
caption := Subitem[0];
Subitem.delete(0);
end;
but not Split text

br
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:56 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.