ClassSystem.Array SyntaxArray.Reverse(array[, startindex, endindex])
DescriptionThe Reverse method reverses a portion of, or all of, the elements of an array. ExampleDim counter As Integer Dim dataSet( ) As Integer = {1, 2, 3, 4, 5} Array.Reverse(dataSet, 1, 3) For counter = 0 To 4 Debug.Write(dataSet(counter)) Next counter This code prints the sequence 14325, which is the original array 12345 with the middle section from index 1 to index 3 reversed. See AlsoArray Class, Array.Sort Method |