Results 1 to 6 of 6

Thread: ReDim Array Qusetion "EASY"

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    May 2001
    Location
    Indianapolis, Indana, USA
    Posts
    40

    ReDim Array Qusetion "EASY"

    I have a series of buttons and an array"array()"
    Each button has a corrisponding "Name" associated with it.
    When each Button is clicked I need it to add one row to my array and Fill that row with the corrisponding Name, yet keep all previouse names in the array.

    I Know this code will cause some kind of out of bound error due to trying to add to an array that is full but I dont know how to get arround it.

    Dim array( ) As String

    Dim i As Integer

    cmdAddSteve_Click( )
    i = UBOUND(array( )) + 1
    array(i ) = “Steve”
    End Sub

    cmdAddJohn_Click( )
    i = UBOUND(array()) + 1
    array(i ) = “John”
    End Sub

    cmdAddSusan_Click( )
    i = UBOUND(array()) + 1
    array(i ) = “John”
    End Sub
    Last edited by Alakazam; Nov 15th, 2001 at 02:55 PM.

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