Results 1 to 2 of 2

Thread: unloading controls

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2002
    Location
    Albacete, Spain
    Posts
    71

    unloading controls

    Hi guys. A little question:

    I have a control array (winsocks). I load 3 more winsocks, and later, I unload the 2nd winsock, so I'll have.

    Winsock(0) exists
    Winsock(1) exists
    Winsock(2) doesn't exist
    Winsock(3) exists

    Later, I need to know something about each one with a loop. How could I know if any of my elements has been unloaded?

    I've tried comparing: If not winsock(i) is nothing then... but it says that the element 1 of the control array doesn't exist. Any way to figure out this?

    Thanks

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    You may have already solved this problem. You can do a For Each statement on a control array.

    VB Code:
    1. Dim ctlWinSock As Winsock
    2.  
    3. For Each ctlWinSock In Winsock
    4.     Debug.Print ctlWinSock.Index
    5. Next

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