Array UBound : Array « Data Structure « VB.Net

VB.Net
1. 2D
2. Application
3. Class
4. Data Structure
5. Database ADO.net
6. Development
7. Event
8. File Directory
9. Generics
10. GUI
11. Language Basics
12. Network Remote
13. Thread
14. Windows System
15. XML
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net Tutorial
VB.Net » Data Structure » ArrayScreenshots 
Array UBound
Array UBound



Public Class MainClass

   Public Shared Sub Main()
        Dim arrMyIntArray1(20As Integer
        Dim arrMyIntArray2() As Integer = {1234}
        Dim arrMyIntArray3(42As Integer
        Dim arrMyIntArray4(,As Integer = _
        {{1234}{5678}{9101112}{13141516}}
        Dim arrMyIntArray5() As Integer
        Console.WriteLine(CStr(UBound(arrMyIntArray2)))
        arrMyIntArray2.GetUpperBound(0)
        Dim intLoop1 As Integer
        Dim intLoop2 As Integer
        For intLoop1 = To UBound(arrMyIntArray4)
            For intLoop2 = To UBound(arrMyIntArray4, 2)
                Console.WriteLine(arrMyIntArray4(intLoop1, intLoop2).ToString)
            Next
        Next
        
   End Sub
End Class


           
       
Related examples in the same category
1. Bounded array ExampleBounded array Example
2. For Each loops through ArrayFor Each loops through Array
3. Two ways to loop through ArrayTwo ways to loop through Array
4. A simple class to store in the array
5. Set Array Element Value by Index
6. Array IndexOf and LastIndexOfArray IndexOf and LastIndexOf
7. Use Array CreateInstance to Create ArrayUse Array CreateInstance to Create Array
8. Array Performance Test: One-dimensional arrayArray Performance Test: One-dimensional array
9. Free array's memory
10. Array Performance Test: SetValue(i, i)Array Performance Test: SetValue(i, i)
11. Declaring, allocating and initializing arraysDeclaring, allocating and initializing arrays
12. Use For Each/Next to find a minimum gradeUse For Each/Next to find a minimum grade
13. Reference an Element in an Array by IndexReference an Element in an Array by Index
14. Array Upper Bound and Lower BoundArray Upper Bound and Lower Bound
15. Init an Array in DeclarationInit an Array in Declaration
16. Array Length PropertyArray Length Property
17. Declare an Array and reference its memberDeclare an Array and reference its member
18. Store your won Class in an ArrayStore your won Class in an Array
w_w___w.j__a_va2___s__.__c_om__ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.