Dynamically Create an Array

Results 1 to 2 of 2

Thread: Dynamically Create an Array

  1. #1
    droy Guest

    Default Dynamically Create an Array

    Does anyone know how to dimension an array dynamically? For example, I want to create an array of varying length based on the number of records retrieved from a database. Thanks.

  2. #2
    Join Date
    Dec 1969

    Default ASPFAQs...and more

    This is a pretty basic question on VBScript capabilities.<BR><BR>See that ASPFAQs (link at the top right of this page) and the "ARRAYS" category.<BR><BR>I might point out, though, that there is already a method on ADODB.RecordSet that will, with one call, convert the entire recordset to a two dimensional array.<BR><BR>Look into ADODB.RecordSet.GetRows in the MSDN docs.<BR><BR>Ask more if you don&#039t understand it.<BR><BR>

Posting Permissions

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