Code: Select all
c:=[]
c[1,1]:="test1"
c[1,2]:="test2"
MsgBox % c[1,2] ; test2
Code: Select all
c:=[]
c[1,1]:="test1"
c[1,2]:="test2"
MsgBox % c[1,2] ; test2
Code: Select all
;v2 2D array
c := []
d := []
;d := Array() ;equivalent
d.Push("test1")
d.Push("test2")
c.Push(d)
MsgBox(c[1][2]) ;test2
;v2 2D array alternative
c := []
d := []
c.Length := 100 ;add some slack
d.Length := 100
d[1] := "test1"
d[2] := "test2"
c[1] := d
MsgBox(c[1][2]) ;test2
Users browsing this forum: a_bolog, Lorence, WarlordAkamu67 and 47 guests