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 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.