Array problems

Results 1 to 3 of 3

Thread: Array problems

  1. #1
    Jason Guest

    Default Array problems

    Hi, can anyone tell me why I am having such problems outputting a 2 dimensional array. In other programming languages I have used the below would work<BR>for f=0 to 2<BR> for r=0 to uBound(arrParts)<BR> response.write"&#060;tr&#062;&#060;td&#062;" & arrParts(f,r) & "&#060;/td&#062;"<BR> next<BR>next<BR><BR>In ASP I always get the error message<BR><BR>Microsoft VBScript runtime error &#039;800a0009&#039; <BR>Subscript out of range: &#039;1&#039; <BR><BR>Also I am trying to add elements to an array which is, in effect, a shopping basket. I have stored the contents of the array as a session variable successfully but am not sure if I will be able to add to the array without overwriting what is already in there.<BR><BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Array problems

    I&#039;d advise you to look this one up - has an article on it.<BR><BR>j

  3. #3
    Join Date
    Dec 1969

    Default RE: Array problems

    try :<BR>for f=1 to 3 <BR><BR><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