You are here:About>Computing & Technology>Visual Basic> Learn VB.NET> Using Arrays and Collections to Manage Data
About.comVisual Basic
Newsletters & RSSEmail to a friendSubmit to Digg

Chapter 11 - Using Arrays and Collections to Manage Data

From Dan Mabbutt,
Your Guide to Visual Basic.
FREE Newsletter. Sign Up Now!

Arrays and Collections: The next best thing to a database!

Arrays and Collections
Arrays and Collections
Previous | Next >>

The book declared that all of us who have completed the course this far have been promoted to Intermediate Programmer. There is nothing that illustrates the difference between the "Hello World" level of programming and higher levels of ability more than understanding how to work with Arrays and Collections. There is a huge world of tricks and techniques that we can use once we understand this key part of VB.NET.

The subtitle of this lesson, "the next best thing to a database" is actually only partly true. You can get a real feeling for what a database does by studying how arrays and collections are used, but they're really targeted at different requirements. A database is for storing huge amounts of information where the relationships between things are critical. If "automobile" is one type of data in the database and "person" is another, then "person owns automobile" is a relationship. That kind of thing would be difficult to do with arrays and collections.

While reading this chapter, you might want to remember the things that were covered in Chapter 7, Using Loops and Timers. The main reason for using arrays and collections is to use iterative processing with them, that is, process them with various types of program loops. (The book covers a new one, For Each, that is designed just for collections.)

  1. Arrays and Collections: The next best thing to a database!
  2. "Clever Programming" with Arrays and Collections
  3. Need to keep track of a series of values? Use an Array!
  4. Understanding the Code
  5. When Your Data is an Object
  6. More at About Visual Basic

Previous | Next >>

 All Topics | Email Article | | |
Advertising Info | News & Events | Work at About | SiteMap | Reprints | HelpOur Story | Be a Guide
User Agreement | Ethics Policy | Patent Info. | Privacy Policy©2008 About, Inc., A part of The New York Times Company. All rights reserved.