How do i get the values of a ListView component(with 3 collums) that is on a form into a memo field that is in a table
we just can't seem to figure it out
thanks
Paul
Try this:
For iCount := 0 to ListView1.Items.Count-1 do
begin
// The first column:
slFiles.Add(ListView1.Items.Item[iCount].Caption);
// The second column:
slFiles.Add(ListView1.Items.Item[iCount].SubItems.Strings[0]);
end;
--
Gerbert Koppelman
sl:= TStringlist.Create;
try
For i := 0 To listview.items.count-1 Do Begin
item := listview.Items[i];
S:= item.Caption;
For k := 0 To item.SubItems.Count-1 Do
S:= S + #9 + item.Subitems[k];
sl.Add( S );
End; { For }
sl.SaveToFile( filename ); (* DbMemo.Lines.Assign(SL); *)
finally
sl.free
end;
End; { SaveListviewStrings }
-------
HTH
jacob
"Paul Wiggers" <Bor...@wish.nl> wrote in message news:3cd68934$1_1@dnews...
with the response from jacob i get an access violation in module (some number)
and with the other response he cannot add the values to the memo :(
do you have some other suggestions?
thanks
Paul Wiggers
"Paul Wiggers" <Bor...@wish.nl> wrote in message news:3cd790ca$1_2@dnews...