Array
An Array is a collection of static size. Like all other collections, they are passed by reference. Unlike most versions of Basic, wxb uses square brackets to help distinguish them from routine calls. Here's a simple declaration:
Dim myArray[10]
If the lower range is not declared, wxb will assume the array starts at zero. You can have up to five dimensions to the array:
Dim myArray[5 To 20, -10 To 10]
Array with undeclared types values initialize their values to zero. You can specify an initial value like this:
Dim myArray[10] = Nothing
You can declare the type as well:
Dim myArray[10] As Number
You can also declare the type and initial value:
Dim myaArray[10] As Integer = 10