SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Sep 2004
    Location
    UK
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    split array evenly into more arrays

    Hello i have an array which i created using the split function.
    Code:
    arrContents = Split(strContents, vbCrLf)
    but now i want to divide the contents of "arrContents" evenly and randomly into 6 other arrays

    How can i go about doing this?
    Thanks alot

  2. #2
    SitePoint Wizard siteguru's Avatar
    Join Date
    Oct 2002
    Location
    Scotland
    Posts
    3,631
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    How do you know that the number of array elements is even? If it is odd then there will be at least 1 sub-array with a different number of elements.

    What is actually IN the arrContents?
    Ian Anderson
    www.siteguru.co.uk


Bookmarks

Posting Permissions

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