"Error 91: object variable or with block variable not set"
I am getting the above error while retrieving the index of selected row in listview.
Please help me out
[CODE=vb]Private Sub ListPersons_Dbl Click()
Dim row As Integer
Dim item As ListItem
Dim personid As Double
Dim bsuccess As Boolean
Dim msName As String
'Listpersons is the name of listview
row = ListPersons.Sel ectedItem.index
personid = ListPersons.Lis tItems(row)
End Sub[/CODE]
Or can anyone suggest any other method for retrieving the index of selecteditem in listview?
I am getting the above error while retrieving the index of selected row in listview.
Please help me out
[CODE=vb]Private Sub ListPersons_Dbl Click()
Dim row As Integer
Dim item As ListItem
Dim personid As Double
Dim bsuccess As Boolean
Dim msName As String
'Listpersons is the name of listview
row = ListPersons.Sel ectedItem.index
personid = ListPersons.Lis tItems(row)
End Sub[/CODE]
Or can anyone suggest any other method for retrieving the index of selecteditem in listview?
Comment