8.16. Wrap-Up

This chapter began our discussion of data structures, exploring the use of arrays to store data in and retrieve data from lists and tables of values. The chapter examples demonstrated how to declare an array, initialize an array and refer to individual elements of an array. We showed how to pass arrays to methods using ByVal and ByRef. We also showed how to use the For Each...Next statement to iterate through the values in an array without using an index. We explained how to declare and manipulate rectangular arrays and jagged arrays. We wrote methods that use variable-length parameter lists. Finally, we demonstrated how to use the ReDim statement to dynamically change an array’s size.

Chapter 24, Data Structures introduces dynamic ...

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition 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.