May 2010
Intermediate to advanced
1272 pages
61h 18m
English
In this paragraph you learn to use value types. The following demonstration assumes you have created a new Visual Basic project for the Console (see Chapter 2 for details). Listing 4.1 shows how you can declare variables storing value types. You can write the code inside the Main method for learning purposes.
Listing 4.1 Using Value Types

You can declare variables of the desired value types using the Dim keyword followed by the identifier of the variable and by the As clause that then requires the type specification.
Read now
Unlock full access