Visual Basic 6 Programming:
Business Applications with a Design Perspective
Table of Contents
Chapter 9 Arrays and Their Uses
- 9.1 One-Dimensional Arrays
- Creating One Dimensional Arrays
- Variable Size Arrays
- 9.2 Sample Uses of Arrays
- Simplified Selection
- Table Look Up
- Tracking Random Occurrences
- Simulation
- Random Sampling without Replacement
- 9.3 Sorting and Searching
- Selected Algorithms for Sorting
- Bubble Sort
- Straight Insertion Sort
- Shell Sort
- Quick Sort
- Comparison of Performance
- Sequential Search and Binary Search
- 9.4 Control Arrays
- Creating a Control Array at Design Time
- Creating a Control Array at Run Time
- Sample Uses of Control Arrays
- 9.5 Two Dimensional Arrays
- Tables
- Matrices
- Game Boards
- 9.6 Additional Notes on Arrays
- Default Lower Bound and Option Base 1
- Preserving Data in ReDim
- Clearing the Content of an Array: the Erase Statement
- Appropriate Use of Arrays
- 9.7 An Application Example
- Accumulating Total Sales by Product
- Algorithm
- Coding the Project
- Summary
- Visual Basic Explorer
- Exercises
- Projects