Oops. Fourth Column would be Listview1.Items.Item[0].SubItems.Strings[2] as
caption is first column then substrings

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Alan Rose
Sent: Sunday, April 29, 2001 9:00 PM
To: Multiple recipients of list delphi
Subject: RE: [DUG]: TTreeView Update


You mean something like this example that is appending the charactor 'X' to
the value in the fourth column on the first row of the listview
Listview1.Items.Item[0].SubItems.Strings[3] :=
Listview1.Items.Item[0].SubItems.Strings[3] + 'X';

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Chrissy R
Sent: Sunday, April 29, 2001 8:32 PM
To: Multiple recipients of list delphi
Subject: Re: [DUG]: TTreeView Update


So I think what I am actually asking is - how do I get the sub-items
from a list?

And again, thanks.


Chrissy.



> Thanks - got that working 'sort-of'.  What I want is to get the values in
two
> of the columns (sub items) and change them to something else by adding
> a character to them - IOW the item has 'bla2' in it and I what to add 'X'.
>
> Thanks, again.
>
> Chrissy.
>
>
>
>
>
> > Something like
> >   for i := 0 to Listview1.Items.Count - 1 do
> >     begin
> >       Listview1.Items.Item[i].Caption := 'bla';
> >       Listview1.Items.Item[i].SubItems.Strings[0] := 'bla2';
> >       Listview1.Items.Item[i].SubItems.Strings[1] := 'bla3';
> >     end;
>
>
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to