VBscript array incrementing

Results 1 to 2 of 2

Thread: VBscript array incrementing

  1. #1
    Join Date
    Dec 1969

    Default VBscript array incrementing

    I am attempting to loop through a recordset withing an asp page and place the records in a number of arrays based on which catagory they belong to. However, this creates a number of arrays with the same name, which does not seem to work. Is there anyway that I can increment the array each time with a number, so that I am creating a new array each time?<BR>e.g<BR> Subarray(x)() <BR><BR>whereby &#039x&#039 is incremented each time. Many thanks

  2. #2
    AA Guest

    Default RE: VBscript array incrementing

    It is better to use the Scripting.Dictionary Object instead of an array when you have to dynamically store values in an array.<BR>There is no need to declare the ubound for this object.<BR><BR>For better understanding you can go to <BR>www.asptoday.com/articles/19991110.htm

Posting Permissions

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