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
Dim x As Integer Dim y ' The type of the variable is Object Dim z As Long