Summing it all up
Throughout this book, we’ve looked at the use of VB in many different environments, including Windows Desktop development with Classic VB and VB.NET Console. We also looked at using VB as a server-side programming language in Classic ASP and ASP.NET. Visual Basic for Applications (VBA) was also used to embed VB in Microsoft Office products, and we explored using VB in scripts with VBScript.
In this section, we’ll provide a brief review of the major topics we covered in this book.
In VB, variable declaration, type, scope, and assignment are fundamental concepts that are used to work with data and manage program logic. Here’s an overview of each of these concepts.
Variable declaration
In VB, you declare variables using the Dim
(short for Dimension) keyword. Variable declaration reserves memory space for storing data and associates a name with it. The basic syntax for declaring a variable is as follows:
Dim variableName As DataType...