O'Reilly logo

Visual Basic .NET Programming Language, The by Paul Vick

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

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

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