You could, but I'm sure it won't return the kind of flow that you are looking for.
It would seem to me that you are trying to find when the indices, I & J,are pointing at certain nodes, not necessarily the value contained in the node. Perhaps:
Code:
Select Case I
Case 1: Select Case J
Case 1: 'For the (1,1) node
Case 2: 'For the (1,2) node
End Select
Case 2: Select Case J
Case 1: 'For the (2,1) node
:
:
:
I guess it all depends on what you are looking for.
No, you dimensioned your array correctly. But when the Select case array(I,J) statement is executed, it is going to be looking at the contents of the node at the current values of I and J. Depending on the datatype, that could have the value "Horse", or 54.85 or whatever.
Let's look at a checkerboard as a 8 x 8 array. Then we could populate by: