Dim iArr As Array
For Each iArr In m_alTabell
'ReDim myArr(16, 11) If i dim iArr(0,0) as string I could do this...
ii = ii + 1
iArr(i, constanter.colNames.colValue) = m_objList.GroupItems.Item(ii).ListItems(i).Value
'm_alTabell.RemoveAt(ii - 1)
'm_alTabell.Add(iArr)
'm_alTabell.Insert(ii - 1, iArr)
'iArr.CopyTo(m_alTabell.ToArray, ii - 1)
'al.Add(iArr)
Next iArr
I have a problem with this code. m_alTabell constists of 10 twodimensional arrays. I have some data in them from the beginning. Now I want to add data in each iArr in a_alTabell. This works fine on the first one. But then the trouble starts. It just keeps overwriting the first iArr in m_alTabell. So if i could redim iArr it would solve the problem but i cant do that course it needs to be declared as Array and not "Dim iArr(0,0) as string" since that couses other problems.