5 Working with Data Structures

WHAT YOU WILL LEARN IN THIS CHAPTER:

  • Using arrays
  • Working with enumerations
  • Using constants
  • Working with structures
  • Working with and using an ArrayList
  • Creating and adding items to a collection
  • Understanding and building lookup tables with Hashtables
  • Manipulating arrays using redimensioning and preserver

WROX.COM CODE DOWNLOADS FOR THIS CHAPTER

The wrox.com code downloads for this chapter are found at www.wrox.com/begvisualbasic2015 on the Download Code tab. The code is in the 092117 C05.zip download and individually named according to the names given throughout the chapter.

In the previous chapters, you worked with simple data types—namely, Integer and String variables. Although these data types are useful in their own right, more complex programs call for working with data structures—groups of data elements that are organized in a single unit. In this chapter, you learn about the various data structures available in Visual Basic 2015. You also will see some ways in which you can work with complex sets of data. Finally, you learn how you can build powerful collection classes for working with, maintaining, and manipulating lists of complex data.

UNDERSTANDING ARRAYS

A fairly common requirement in writing software ...

Get Beginning Visual Basic 2015 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.