N
Neil
Hi Folks,
In a nutshell...
I have 6 pieces of info describing products in an array which is
carried between asp pages in session arrays.
e.g.
localcart(x,i)
For...
localcart(ProdID,i)=ProdID
localcart(Size,i)=Size
etc..
Loop
then..
session("cart")= localCart (to carry the info between pages)
This has worked fine, but I want to add options that further describe
the product. Now, depending on the product type, a different number of
options are available, determined from a recordset, e.g. length,
weight, voltage, etc. which are rendered to form elements - e.g.
length=100, weight=50 etc.
My question is this.
How can my localcart array, which contains a fixed number of fields to
identify the products in the cart, contain another dynamic array which
may have 4 to 12 pieces of additional information, depending on the
product(s) selected?
If I could have a dimension in the original array, say
localcart(Options,i), which could hold the contents of a dynamic array
localOptions(), this might help - but I can't figure out a way to do
it!
I hope this is clear - appreciate your help
NMF
In a nutshell...
I have 6 pieces of info describing products in an array which is
carried between asp pages in session arrays.
e.g.
localcart(x,i)
For...
localcart(ProdID,i)=ProdID
localcart(Size,i)=Size
etc..
Loop
then..
session("cart")= localCart (to carry the info between pages)
This has worked fine, but I want to add options that further describe
the product. Now, depending on the product type, a different number of
options are available, determined from a recordset, e.g. length,
weight, voltage, etc. which are rendered to form elements - e.g.
length=100, weight=50 etc.
My question is this.
How can my localcart array, which contains a fixed number of fields to
identify the products in the cart, contain another dynamic array which
may have 4 to 12 pieces of additional information, depending on the
product(s) selected?
If I could have a dimension in the original array, say
localcart(Options,i), which could hold the contents of a dynamic array
localOptions(), this might help - but I can't figure out a way to do
it!
I hope this is clear - appreciate your help
NMF