|
Hi - the code below used to work but now doesn't not sure what is happening.
On on the line in question I have tried replacing the count variable with a number 0, 1, 2 and still end up with the same result, all of these are within the correct range.
Cheers in advance Alun
details=Request.Cookies("cart_contents")
Response.Write("details="&details&"<p>")
detail_split=Split(details,"<br>")
detail_count=Ubound(detail_split)
Response.Write("detail_count="&detail_count&"<br>" )
detail_lbound=Lbound(detail_split)
Response.Write("detail_lbound="&detail_lbound&"<br >")
FOR count=0 TO detail_count-1
product_name=Split(detail_split(count),"£")
Response.Write("count="&count&"<br>")
*****Response.Write("product_name="&product_name(c ount)&"<br>")
*****This line throws up a 'subscript out of range error'
The output is the following
details=
(L200 002 NFEF) 0.20 kW 1.40 AMP sph £115 Q1
detail_count=2
detail_lbound=0
count=0
Ignore this bit I Can
£ count=1
|