Re: listview problem....



"vonClausowitz" <vonclausowitz@xxxxxxxxx> wrote in
news:1148413865.826319.190480@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:

Hi all,

I have a listview showing records.
The columns can be reshuffled.
Now I want to detect the lastname and the firstname columns when I
select the row.
So lets say I have a person listed like: John Johnson.
But since the columns can be reshuffled it can as easily be Johnson
John.
How can I determine the lastname and firstname when i select the row?

Set itmX = ListView1.SelectedItem
sChosenItem1 = itmX

sLastName = sChosenItem
sFirstName = sChosenItem

Marco



Had you assigned keys to the sub-items ?

You can then refer to the sub-item by the key no matter what columnar
position it is in.


DanS
.


Loading