Introduction
These are described in your text in chapter 8. They are dealt with quite similarly to Pascal.
The lower bound (which can be found with the LBound() function if needed) of an array is the
lowest index (element number) of the array. By default it is zero - but you can change this
default to one if you use the Option Base 1 statement at the start of your module. (In this
case e.g. Dim intMyArr (5) As Integer would create the array structure with room for five
integers indexed 1 to 5) However it is advisable to explicitly declare the lower and upper
bounds with :
(lower To upper) so e.g. Dim intMyArr (0 To 4) As Integer shows the style we will use
from now on with the value for lower explicitly given and put at 0.
The syntax extends what you already have seen for simple variables.
No comments:
Post a Comment