Array.SetValue for a seven-dimensional array : Array Multi Dimension « Data Structure « VB.Net






Array.SetValue for a seven-dimensional array

 
Imports System

Public Class SamplesArray
   Public Shared Sub Main()

      ' Creates and initializes a seven-dimensional array.
      Dim myArr7(5, 5, 5, 5, 5, 5, 5) As [String]

      ' Sets the element at index 1,2,3,0,1,2,3.
      Dim myIndices() As Integer = {1, 2, 3, 0, 1, 2, 3}
      myArr7.SetValue("one-two-three-zero-one-two-three", myIndices)
      Console.WriteLine("[1,2,3,0,1,2,3]:   {0}", myArr7.GetValue(myIndices))
   End Sub

End Class

   
  








Related examples in the same category

1.Initializing a jagged array, one in which the length of each array differsInitializing a jagged array, one in which the length of each array differs
2.Define and initialize the multi-dimensional arrayDefine and initialize the multi-dimensional array
3.Seclare a 4x3 Integer arraySeclare a 4x3 Integer array
4.Array Performance Test: Two-dimensional arrayArray Performance Test: Two-dimensional array
5.Array Performance Test: Two-dimensional Array and SetValue(i, i)Array Performance Test: Two-dimensional Array and SetValue(i, i)
6.Two Dimensional Rectangle ArrayTwo Dimensional Rectangle Array
7.Define and Init two dimensional arrayDefine and Init two dimensional array
8.Initializing multidimensional arrays: rectangular two-dimensional arrayInitializing multidimensional arrays: rectangular two-dimensional array
9.Jagged two-dimensional arrayJagged two-dimensional array
10.Two dimension array DemoTwo dimension array Demo
11.Array.SetValue for two-dimensional array
12.Array.SetValue for three-dimensional array
13.Clear multi-dimensional array