Greetings. I'm trying to write a little sub routine that will update a listview. I've got several list views and different controls that will write to them so the sub needs to be quite flexible, here is my code:
I've not worked with ListViews much so there may be errors in the way I am populating it, but that's okay - I'll cross that hurdle when I get to it, my actual problem is when I call this sub i.e.Code:Public Sub UpdateListView(ListViewName As String, ListViewItem As Long, ListViewColumn As Long, ControlData As String) ListViewName.ListItems(ListViewItem).SubItems(ListViewColumn) = ControlDate End Sub
The line has somthing wrong with it, it shows up red :| I've had a good look through and can't see any obvious syntax errors.Code:updatelistview("frmcompanydetails.lvwBankDetails", frmcompanydetails.lvwBankDetails.SelectedItem.index, 0, frmcompanydetails.txtAccountName.Text)
Any ideas?





Reply With Quote