![]() ![]() | ||
As with all programming languages, Visual Basic is built using keywords. You'll find these keywords in Table 2.1. These keywords are reserved for use by Visual Basic, and you use them to build your programs.
Tip |
Although the keywords in Table 2.1 are reserved for use by VB .NET, it turns out you can use them for your own use if you surround them with brackets, [ and ]. For example, if you wanted to name a text string Error, you could actually use the term [Error] as a variable. |
There are also quite a few keywords and phrases in VB6 that are now obsolete, which you can see in Table 2.2.
As Any |
Atn |
Calendar |
Circle |
Currency |
Date$ |
Debug.Assert |
Debug.Print |
Deftype |
DoEvents |
Empty |
Eqv |
GoSub |
Imp |
Initialize |
Instancing |
IsEmpty |
IsMissing |
IsNull |
IsObject |
Let |
Line |
LSet |
MsgBox |
Now |
Null |
On…GoSub |
On…GoTo |
Option Base |
Option |
Private |
Module |
Property Get, Property Let, and Property Set |
PSet |
Rnd |
Round |
RSet |
Scale |
Set |
|
Sgn |
Sqr |
Terminate |
Time |
|
Time$ |
Type |
Varian |
VarType |
Wend |
In general, Visual Basic programs are made up line by line of code, and these lines of code are called statements.
![]() ![]() | ||