O'Reilly logo

Microsoft® Visual Basic® 2010 Developer’s Handbook by Klaus Löffelmann and Sarika Calla Purohit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Arrays and Collections

This chapter has already presented two ways of storing data:

  • Value types and primitive value types for saving fast, but small data structures, such as date values, integer values, floating-point values, True/False values, positions and sizes, and characters and strings.

  • Reference types for saving larger amounts of data, such as controls and pictures.

You use both types within a program by employing variables. However, in some cases this can pose a problem: what do you do when you need to find another value in a table, based on the value of a variable?

Suppose that you have saved five names in variables. This, in and of itself, is not a problem:

Dim Name1 As String = "Lisa Feigenbaum" Dim Name2 As String = "Sarika Calla" Dim Name3 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required