Chapter 6. Storing Information in Variables

In this chapter

Declaring and Naming Variables

Understanding Data Types

Working with Numeric Data Types

Using Math Operations

Using Date and Time Values

Working with Strings

Using Arrays

Understanding Regional Settings

Exercise: Parsing Strings

In this chapter we will discuss variables. Variables are used to store information in the computer’s memory while your programs are running. Three components define a variable:

  • The variable’s name (which correlates to its location in memory)

  • The type of information being stored

  • The actual information itself

Suppose you are given this assignment: “Go count all the cars in the parking lot.” As you count each car, you are storing information in a variable. Your location ...

Get Special Edition Using Microsoft® Visual Basic® .NET 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.