+ Reply to Thread
Results 1 to 3 of 3

dynamic initialisation/declaration of array using an index

  1. #1
    Registered User
    Join Date
    05-18-2005
    Location
    Sydney, Australia
    Posts
    2

    dynamic initialisation/declaration of array using an index

    Hi
    I am trying to declare an array in the following loop:
    -------------------------------------------------------------------
    'For k = 1 to 12
    i = 1
    For j = 1 To NoData Step 12
    series1(i, 1) = series(j, 1)
    i = i + 1
    Next j
    'Next k

    -------------------------------------------------------------------
    As you can see Series1 is an array. but I would like to declare 12 arrays using the outer k loop. So Series1, Series2, Series3.,.,.., Series12

    Please advise. Any help would be much appreciated.

    regards
    Rohit

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,351
    If this were me, I think I would use a two dimensional array seriesb(i,k). So what you have going into the single column series1 would now be in seriesb(i,1), series2 would be in seriesb(i,2), series3 in seriesb(i,3), and so on through seriesb(i,12).

  3. #3
    Registered User
    Join Date
    05-18-2005
    Location
    Sydney, Australia
    Posts
    2
    Thank you so much !

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1