|
-
Mar 21st, 2002, 12:55 PM
#1
Thread Starter
New Member
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
Last edited by ggoodson1980; Mar 21st, 2002 at 01:04 PM.
-
Mar 22nd, 2002, 11:01 AM
#2
Lively Member
When you step through you ItemClick code does it go to your populateList function?
-
Mar 22nd, 2002, 11:42 AM
#3
Indeed it does go to the populateList function. It just completly skips the RaiseEvent in the function.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|