Results 1 to 3 of 3

Thread: RaiseEvents

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Location
    London
    Posts
    2

    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.

  2. #2
    Lively Member Rockman's Avatar
    Join Date
    Apr 2001
    Posts
    66
    When you step through you ItemClick code does it go to your populateList function?

  3. #3
    ggoodson
    Guest
    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
  •  



Click Here to Expand Forum to Full Width