Hi,
What is the code for 2d arrays i thing it's as below but it does not work,
dim myarray as string
myarray = array(10,10)
myarray(4,6) = "String"
Thanks
Joolz
Printable View
Hi,
What is the code for 2d arrays i thing it's as below but it does not work,
dim myarray as string
myarray = array(10,10)
myarray(4,6) = "String"
Thanks
Joolz
VB Code:
Dim myarray(10,10) as string myarran(4,6) = "String"
Thanks
Some crazy sample just to give you an idea:
[Highlight=VB]
Dim MyArray(9, 9) As String
Dim i%, j%
For i = 0 To 9
For j = 0 To 9
MyArray(i, j) = i & "Item " & j
Next j
Next i
Debug.Print MyArray(5, 9)
[/bvcode]