Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Microsoft VBScript runtime error '800a0009'


Message #1 by "danny njuguna" <danny@n...> on Tue, 5 Mar 2002 11:29:52
i get this error 



Microsoft VBScript runtime error '800a0009' 

Subscript out of range: '[number: 2]' 





this is the script



sub categorymenu



	showcart=false

	'work out contents of shopping cart

	numitems=0



	If IsArray(Session("cart")) = false Then

		Dim acart(299,2)

		Session("cart") = acart

		showcart=false

	else

		acart=Session("cart")

		for i=lbound(acart) to ubound(acart)

		if acart(i,0)<>"" and acart(i,1)<>"" and acart(i,2)<>"" 

then

			numitems=numitems+acart(i,1)

			showcart=true

		end if

		next



	end if

  Return to Index