Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Scripting
VBScript
 VBScript Features
This page is specific to
.NET Framework 3.0

Other versions are also available for the following:
Visual Basic Scripting Edition
VBScript Features

Updated: November 2007

The following table is a list of VBScript features.

Category

Keywords

Array handling

ArrayDim, Private, Public, ReDimIsArray Erase LBound, UBound

Assignments

Set

Comments

Comments using ' or Rem

Constants/Literals

EmptyNothing Null True, False

Control flow

Do...LoopFor...Next For Each...Next If...Then...Else Select Case While...Wend With

Conversions

AbsAsc, AscB, AscW Chr, ChrB, ChrW CBool, CByteCCur, CDateCDbl, CIntCLng, CSng, CStrDateSerial, DateValueHex, OctFix, IntSgn TimeSerial, TimeValue

Dates/Times

Date, TimeDateAdd, DateDiff, DatePartDateSerial, DateValueDay, Month, MonthNameWeekday, WeekdayName, YearHour, Minute, SecondNow TimeSerial, TimeValue

Declarations

ClassConst Dim, Private, Public, ReDimFunction, SubProperty Get, Property Let, Property Set

Error Handling

On ErrorErr

Expressions

EvalExecute RegExp Replace Test

Formatting Strings

FormatCurrencyFormatDateTime FormatNumber FormatPercent

Input/Output

InputBoxLoadPicture MsgBox

Literals

EmptyFalse Nothing Null True

Math

Atn, Cos, Sin, TanExp, Log, SqrRandomize, Rnd

Miscellaneous

Eval FunctionExecute Statement RGB Function

Objects

CreateObjectErr Object GetObject RegExp

Operators

Addition (+), Subtraction (-)Exponentiation (^) Modulus arithmetic (Mod) Multiplication (*), Division (/)Integer Division (\) Negation (-) String concatenation (&) Equality (=), Inequality (<>)Less Than (<), Less Than or Equal To (<=)Greater Than (>) Greater Than or Equal To (>=) Is And, Or, XorEqv, Imp

Options

Option Explicit

Procedures

CallFunction, SubProperty Get, Property Let, Property Set

Rounding

AbsInt, Fix, RoundSgn

Script Engine ID

ScriptEngineScriptEngineBuildVersion ScriptEngineMajorVersion ScriptEngineMinorVersion

Strings

Asc, AscB, AscWChr, ChrB, ChrWFilter, InStr, InStrBInStrRev Join Len, LenBLCase, UCaseLeft, LeftBMid, MidBRight, RightBReplace Space Split StrComp String StrReverse LTrim, RTrim, Trim

Variants

IsArrayIsDate IsEmpty IsNull IsNumeric IsObject TypeName VarType

Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker