how to creare an array

Results 1 to 2 of 2

Thread: how to creare an array

  1. #1
    Join Date
    Dec 1969

    Default how to creare an array

    Hi,<BR><BR>Im having problem creating an integer array.<BR><BR>Im getting a id number from a database (its an autonumber id) and Im wanting to create an array with it<BR><BR>rs.MoveLast<BR>endfid = rs("fid")<BR>endfid = cint(endfid)<BR>Dim forumarray(endfid, endfid)<BR>&#039;create array<BR><BR>I did the following, but I get a error:<BR><BR><BR>Microsoft VBScript compilation error &#039;800a0402&#039; <BR><BR>Expected integer constant <BR><BR>/learn/forum/displaymessagethread.asp, line 184 <BR><BR>Dim forumarray(endfid, endfid)<BR>---------------^<BR><BR><BR>Any ideas?<BR><BR>Thanks Red

  2. #2
    Join Date
    Dec 1969

    Default RE: how to creare an array

    try using getrows() to store the recordset values in array.<BR><BR>array=rs.getrows()<BR><BR>all the best<BR>soorya

Posting Permissions

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