Chapter 7. Working with Arrays
IN THIS CHAPTER
Declaring a Fixed-Size Array 94
Understanding an Array’s Index 94
Working with Array Elements 95
Arrays with Multiple Dimensions 96
Expanding to Dynamic Arrays 98
Introducing Arrays
With one exception all the variables we have used in previous chapters have been specific as to data type and held a single value. That one exception was the lottery number generator introduced in Chapter 6, “Conditional and Looping Statements.” That code used a different type of variable called an array. An array has the capability to hold a set of values of the same data type. Arrays are often visualized as rows and columns of data, much like a spreadsheet appears to the user. In VBA an array is ...
Get Microsoft® Office Access 2007 VBA now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.