Re: listview problem....
- From: DanS <t.h.i.s.n.t.h.a.t@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 23 May 2006 16:51:45 -0500
"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
.
- Follow-Ups:
- Re: listview problem....
- From: vonClausowitz
- Re: listview problem....
- References:
- listview problem....
- From: vonClausowitz
- listview problem....
- Prev by Date: Re: Custom Properties for ActiveX Control
- Next by Date: Re: tabbing in a text box.
- Previous by thread: listview problem....
- Next by thread: Re: listview problem....
- Index(es):
Loading