Results 1 to 2 of 2

Thread: withevents and array of connections

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2000
    Location
    Denmark
    Posts
    44

    Question withevents and array of connections

    Hello !!

    How do I make an array of ADO connections using WithEvents??

    I can:
    Dim myConn(9) as ADODB.Connection

    For n = 0 to 9
    set myConn(n) = New ADODB.Connection
    Next

    but I will use a event like :

    Private Sub myConn_ExecuteComplete(ByVal RecordsAffected As Long, ByV.... etc....

    It would be nice if it could be something like :
    Dim WithEvents myConn(9) As ADODB.Connection, and being able to catch all the executecomplete-events

    but it cant


    Can someone help me with this??


    Kind regardz
    Janus

  2. #2

    Thread Starter
    Member
    Join Date
    Nov 2000
    Location
    Denmark
    Posts
    44
    I guess noone can answer my question??

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