If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Changing Array Length Problem

Hey I have a probelm, I'm have a website that uses a Shopping Cart and in
the code it says that there is a Array Mismatch Etc. I'm not very familiar
with Arrays Etc and I was wondering if someone can tell me how to change
the Array Lengths so I can fix this problem
Thanks Damo

Re: Changing Array Length Problem

dim myarray(5)
redim myarray(7)
x = 8
redim myarray(x)

"Damo" <superstormtrooperdamo@hotmail.com> wrote in message
news:3da4f3e6$1@10.1.10.29...
>
> Hey I have a probelm, I'm have a website that uses a Shopping Cart and
in
> the code it says that there is a Array Mismatch Etc. I'm not very
familiar
> with Arrays Etc and I was wondering if someone can tell me how to
change
> the Array Lengths so I can fix this problem
> Thanks Damo

Re: Changing Array Length Problem

Re: Changing Array Length Problem

If you need to expand the size of an existing array you have 2 choices:

1) ReDim Preserve MyArray(nNewSize) - The preserve option keeps the data
in the array. Without preserve your new array size is increased, but existing
data is lost. ReDim Preserve easy to code, but it can be expensive (slow),
so you might prefer option 2.

"Damo" <superstormtrooperdamo@hotmail.com> wrote:
>
>Hey I have a probelm, I'm have a website that uses a Shopping Cart and in
>the code it says that there is a Array Mismatch Etc. I'm not very familiar
>with Arrays Etc and I was wondering if someone can tell me how to change
>the Array Lengths so I can fix this problem
>Thanks Damo