Mega Code Archive

 
Categories / VB.Net / Data Structure
 

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