Sub Globals
Dim Type(s1,s2)var1(1) As double
Dim var2(0[COLOR="red"],0) As double[/COLOR]
End Sub
Sub App_Start
'our array structure
var1(0,0)=0
var1(0,1)=1
showstructure
'adding new rows
Dim var2(ArrayLen(var1(),1),ArrayLen(var1(),2))[COLOR="Red"] As Double[/COLOR]
var2()=var1()
'copy old values
Dim var1(ArrayLen(var2(),1)+2,ArrayLen(var2(),2)) [COLOR="red"]As Double[/COLOR]
[COLOR="Red"]ArrayCopy(var2(), 0, ArrayLen(var2(),1)*ArrayLen(var2(),2), var1(), 0)[/COLOR]
'add new rows
var1(ArrayLen(var1(),1)-2,0)=1
var1(ArrayLen(var1(),1)-2,1)=2
var1(ArrayLen(var1(),1)-1,0)=2
var1(ArrayLen(var1(),1)-1,1)=3
showstructure
End Sub
Sub showstructure
For i=0 To ArrayLen(var1(),1)-1
For j=0 To ArrayLen(var1(),2)-1
s=s&var1(i,j)&" "
Next
s=s&CRLF
Next
Msgbox(s)
End Sub