Array help

Results 1 to 2 of 2

Thread: Array help

  1. #1
    Daniel Guest

    Default Array help

    Here is my problem:<BR>I currently have a counter to count all records. Ex. 26<BR><BR>I want to be able to store in an array the info below:<BR>1-9, 10-18, 19-26 <BR>(based on 9 records a group until we hit the total number of records)<BR><BR>I need to determine when I hit the 9th record and place 1-9 into the array, and when I hit 18 I need to place 10-18 into the array and keep the previous 1-9 until I hit the end of the record counts.<BR><BR>Any Ideas? More info?

  2. #2
    Join Date
    Dec 1969

    Default RE: Array help

    I don&#039t know what level of help you are looking for, but if you just want to know how to use a dynamically sized array, just use redim.<BR><BR>Any time you have hit the 9th element, redim preserve arrName(8*numGroups) and then set the values. Note the user of 8 instead of 9 in the array because it starts with 0 instead of 1.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts