-
RaiseEvents
I have the following function within a form:
Private Function populateList(sKey As String) As Integer
Dim aListItems() As String, lFields As Long
Dim i As Long
RaiseEvent getListItems(sKey, aListItems(), lFields)
For i = 0 To UBound(aListItems()) Step lFields
lvwExplorer.ListItems.Add , "L" & aListItems(i), aListItems(i + 1)
Next i
End Function
If I call this function from the Form_Load event the RaiseEvent fires correctly and goes off to the class module. However I also am trying to get it to fire on the ItemClick event of the ListView control. It doesn't fire.
Any ideas would be greatly appreciated.
Regards
Gary
-
When you step through you ItemClick code does it go to your populateList function?
-
Indeed it does go to the populateList function. It just completly skips the RaiseEvent in the function.