Chapter 6. Statements

Whereas operators perform operations on values, statements perform general actions. For example, the For...Next statement executes a set of statements some number of times. This chapter covers the set of Visual Basic .NET statements.

Local Declaration Statements

A local declaration statement declares a variable that can be used within a method. Local declarations can choose not to specify a type for the variable; if no type is specified, the type of the variable is assumed to be Object.

Dim x As Integer
Dim y              ' The type of the variable is Object
Dim z As Long

Get Visual Basic .NET Programming Language, The now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.