Array.GetLowerBound : Array « System « VB.Net by API






Array.GetLowerBound

  

public class Test
   public Shared Sub Main
        Dim aryNames(9) As String
        Dim intCounter As Integer

        'Show the array boundaries.
        Console.WriteLine("LOWER BOUND: " & aryNames.GetLowerBound(0))
        Console.WriteLine("UPPER BOUND: " & aryNames.GetUpperBound(0))
        Console.WriteLine("LENGTH: " & aryNames.Length)

        'Populate the array.
        For intCounter = 0 To aryNames.GetUpperBound(0)
            aryNames(intCounter) = "Element position = " & intCounter
        Next intCounter

        'Show the elements of the array.
        For intCounter = 0 To aryNames.GetUpperBound(0)
            Console.WriteLine("Element position = " & intCounter)
        Next intCounter


   End Sub


End class

   
    
  








Related examples in the same category

1.Array.BinarySearch
2.Array.Clone
3.Array.Copy
4.Array.CreateInstance
5.Array.GetUpperBound
6.Array.GetValue
7.Array.IndexOf
8.Array.LastIndexOf
9.Array.Length
10.Array.Reverse
11.Array.SetValue
12.Array.Sort