Visual Basic in 12 Easy Lessons velxb.htm

Previous Page TOC Next Page



Appendix B


Reserved Words


Visual Basic contains a long list of commands, functions, and methods. These are known as reserved words or keywords. You must be careful not to assign procedures, controls, or variables any of these names or Visual Basic will generate an error.

Table B.1. The reserved words.

Abs
Access
AddItem
AddNew
Alias
And
Any
App
AppActivate
Append
AppendChunk
Arrange
As
Asc
Atn
Base
Beep
BeginTrans
Binary
ByVal
Call
Case
CCur
CDbl
ChDir
ChDrive
Chr
Chr$
CInt
Circle
Clear
Clipboard
CLng
Close
Cls
Command
Command$
CommitTrans
Compare
Const
Control
Controls
Cos
CreateDynaset
CSng
CStr
CurDir$
Currency
CVar
CVDate
Data
Date
Date$
DateSerial
DateValue
Day
Debug
Declare
DefCur
CefDbl
DefInt
DefLng
DefSng
DefStr
DefVar
Delete
Dim
Dir
Dir$
Do
DoEvents
Double
Drag
Dynaset
Edit
Else
ElseIf
End
EndDoc
EndIf
Environ$
EOF
Eqv
Erase
Erl
Err
Error
Error$
ExecuteSQL
Exit
Exp
Explicit
False
FieldSize
FileAttr
FileCopy
FileDateTime
FileLen
Fix
For
Form
Format
Format$
Forms
FreeFile
Function
Get
GetAttr
GetChunk
GetData
DetFormat
GetText
Global
GoSub
GoTo
Hex
Hex$
Hide
Hour
If
Imp
Input
Input$
InputBox
InputBox$
InStr
Int
Integer
Is
IsDate
IsEmpty
IsNull
IsNumeric
Kill
LBound
LCase
LCase$
Left
Left$
Len
Let
Lib
Like
Line
LinkExecute
LinkPoke
LinkRequest
LinkSend
Load
LoadPicture
Loc
Local
Lock
LOF
Log
Long
Loop
LSet
LTrim
LTrim$
Me
Mid
Mid$
Minute
MkDir
Mod
Month
Move
MoveFirst
MoveLast
MoveNext
MovePrevious
MoveRelative
MsgBox
Name
New
NewPage
Next
NextBlock
Not
Nothing
Now
Null
Oct
Oct$
On
Open
OpenDataBase
Option
Or
Output
Point
Preserve
Print
Printer
PrintForm
Private
PSet
Put
QBColor
Random
Randomize
Read
ReDim
Refresh
RegisterDataBase
Rem
RemoveItem
Reset
Restore
Resume
Return
RGB
Right
Right$
RmDir
Rnd
Rollback
RSet
RTrim
RTrim$
SavePicture
Scale
Second
Seek
Select
SendKeys
Set
SetAttr
SetData
SetFocus
SetText
Sgn
Shared
Shell
Show
Sin
Single
Space
Space$
Spc
Sqr
Static
Step
Stop
Str
Str$
StrComp
String
String$
Sub
System
Tab
Tan
Text
TextHeight
TextWidth
Then
Time
Time$
Timer
TimeSerial
TimeValue
To
Trim
Trim$
True
Type
TypeOf
UBound
UCase
UCase$
Unload
Unlock
Until
Update
Using
Val
Variant
VarType
Weekday
Wend
While
Width
Write
Xor
Year
ZOrder

Previous Page Page Top TOC Next Page