Results 1 to 3 of 3

Thread: Selecting an entire array

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2003
    Posts
    29

    Selecting an entire array

    Me again...

    Well, I've accomplished somethign with your guys help. Now, I need to know who to select an entire array variable instead of having to do this:

    Private Sub mnu_clear_Click()
    Sector(0).Caption = ""
    Sector(1).Caption = ""
    Sector(2).Caption = ""
    Sector(3).Caption = ""
    Sector(4).Caption = ""
    Sector(5).Caption = ""
    Sector(6).Caption = ""
    Sector(7).Caption = ""
    Sector(8).Caption = ""
    End Sub

    How would I go about doing this? Please be kind and explain just a bit of it>
    Look through your dreams through a mirror,

  2. #2
    Lively Member
    Join Date
    Apr 2003
    Location
    Georgetown, Texas
    Posts
    114
    This is the BASIC forum. Your posting is for VB or VBA. I believe you will get answers if you post in one of the available Visual Basic forums.

  3. #3
    Lively Member
    Join Date
    Apr 2003
    Location
    Georgetown, Texas
    Posts
    114
    For the eight array elements ou show, try:

    Private Sub mnu_clear_Click()
    For I = 1 to 9
    Sector(I-1).Caption = ""
    Next I
    End Sub

    And, let me know if this worked for you.

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