INFO: Reserved Words in VBScript 5.5 and JScript 5.5

Article translations Article translations
Article ID: 216528 - View products that this article applies to.
This article was previously published under Q216528
Expand all | Collapse all

SUMMARY

There are certain words that the scanner (parser) in Visual Basic Scripting Edition (VBScript) version 5.5 and JScript version 5.5 considers "reserved". Although these words are not all in use, they are still treated as reserved and cannot be used as identifiers or variables.

MORE INFORMATION

VBScript

The following words are reserved in Microsoft VBScript:

  • And
  • As
  • Boolean
  • ByRef
  • Byte
  • ByVal
  • Call
  • Case
  • Class
  • Const
  • Currency
  • Debug
  • Dim
  • Do
  • Double
  • Each
  • Else
  • ElseIf
  • Empty
  • End
  • EndIf
  • Enum
  • Eqv
  • Event
  • Exit
  • False
  • For
  • Function
  • Get
  • GoTo
  • If
  • Imp
  • Implements
  • In
  • Integer
  • Is
  • Let
  • Like
  • Long
  • Loop
  • LSet
  • Me
  • Mod
  • New
  • Next
  • Not
  • Nothing
  • Null
  • On
  • Option
  • Optional
  • Or
  • ParamArray
  • Preserve
  • Private
  • Public
  • RaiseEvent
  • ReDim
  • Rem
  • Resume
  • RSet
  • Select
  • Set
  • Shared
  • Single
  • Static
  • Stop
  • Sub
  • Then
  • To
  • True
  • Type
  • TypeOf
  • Until
  • Variant
  • Wend
  • While
  • With
  • Xor

JScript

The following words are reserved in Microsoft JScript:

  • break
  • case
  • catch
  • class
  • const
  • continue
  • debugger
  • default
  • delete
  • do
  • else
  • enum
  • export
  • extends
  • false
  • finally
  • for
  • function
  • if
  • import
  • in
  • instanceof
  • new
  • null
  • return
  • super
  • switch
  • this
  • throw
  • true
  • try
  • typeof
  • var
  • void
  • while
  • with

REFERENCES

For more information on Microsoft JScript and VBScript, see the Microsoft Windows Script Technologies Web site:
http://msdn2.microsoft.com/en-us/library/ms950396.aspx
For the complete ECMA-262 specification (on which Microsoft JScript is based), see the following ECMA site:
http://www.ecma.ch/ecma1/STAND/ECMA-262.htm

Properties

Article ID: 216528 - Last Review: August 8, 2007 - Revision: 2.1
APPLIES TO
  • Microsoft Internet Explorer 5.5
  • Microsoft JScript 5.5
  • Microsoft Visual Basic, Scripting Edition 5.5
Keywords: 
kbinfo kbscript KB216528
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com