Will there always be 8 columns?
If so, either reverse the subscripts so that "column" is the first subscript
or use a one-dimensional array and compute the offsets as in:
col1val = invoiceItemsArray( nRow*8 )
col2val = invoiceItemsArray( nRow*8 + 1)
col3val = invoiceItemsArray( nRow*8 + 2)
etc.
If both subscript ranges are variable and you cannot put an upper bound on
one or the other then you will probably have to create a new array and copy
the existing data to increase the array size.
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Colin Steadman" <ms**@N0Tpart0FemailADdRESSScolinsteadman.com> wrote in
message news:e1****************************@phx.gbl...
Is the following assumption correct?
If I setup an array with 5 rows and 8 columns.
Private invoiceItemsArray
ReDim invoiceItemsArray(4,7)
Am I stuffed if I want to add a fifth row? From what I've
read I will only be able to add more columns in this
instance.
Is this correct? And if so is there a work-a-round.
Would I need to create a new array with one extra row, use
the old one to populate it and then add my new row data?
TIA,
Colin