Click to See Complete Forum and Search --> : ListView - Get Value in XRow/YCollumn


jpfo
October 17th, 2001, 09:22 AM
hi,

Help me on this one...

I have a listview with checkboxes.
I want to get the text of the Item.Index() in ColumnHeaders X.

So...

lets say that i have the Item.Index value in a string and i know what collumn i want to crosstable. Who can i get the field text in the listview?

I have:

private Sub lstvwXXX_ItemCheck(byval Item as MSComctlLib.ListItem)
sID = Item.Index() 'get the Index checked
sNIF = lstvwXXX.ColumnHeaders.Item(2) 'This is the collumn
'? The text in sID in collumn sNIF....blrrrrrrrr!
End Sub



Thks to all help...

JPFO
Portugal-Lisbon

jpfo
October 17th, 2001, 10:26 AM
done! No help needed this time...

private Sub ltvFacturas_ItemCheck(byval Item as MSComctlLib.ListItem)
Dim sIDx as Integer
sIDx = Item.Index()
sVal = ltvFacturas.ListItems.Item(sIDx).SubItems(1)
End sub



sVal = value in checked index in collumn Y

JPFO
Lisbon - Portugal