How are arrays initialized in Visual Basic?
Visual Basic arrays consist of ordered sets of like items. Arrays can be one dimensional or multi-dimensional. Multi-dimensional arrays can go as high as 60 dimensions. “Dimension” is a matrix-like concept, not a space-time term.TypesArrays are static or dynamic. Static array size is set before a program runs. Dynamic arrays are resizable during execution of a program. Contents of an array can be integers or strings.MethodDeclare and initialize a static array named Customers with this statement: “Dim Customers(500) As String”. Do the same for a dynamic array with this statement: “Dim Customers() As String.”. Then place this code in the main procedure below: Sub Main() ReDim(Customers(500) As String End SubConsiderationsArrays are indexed and the index in Visual Basic starts counting at zero (0). If you want to start counting at one for the above example, use this code: “Redim Customers(1 to 500) As String”.Multi-Dimensional ArraysDeclare and initialize multi-dimensional arrays with str