Is there an easier or faster way to remove a row or a column in a two dimension array?
Let’s imagine that I have a 2 dim array Matrix(ntr, ntc) and I want to delete row “nr”
[code]'Remove row nr
'ntr=numberof rows, ntc=number of columns
For r As Integer = nr To ntr - 1
For c As Integer = 0 To ntc
If UBound(Matrix, 1) < r + 1 Then Continue
If UBound(Matrix, 2) < c Then Continue
Matriu(r, c) = Matriu (r + 1, c)
Next c
Next r
Redim Matrix(ntr - 1, ntc)[/code]
Thanks for any hint.