VBScript Features Home
This page is specific to:.NET Framework Version:2.03.0
Visual Basic Scripting Edition
VBScript Features

The following table is a list of Microsoft Visual Basic Scripting Edition (VBScript) features.

Features by Category

Category

Keywords

Array handling

Array, Dim, EraseIsArrayLBound, Private, Public, ReDim, UBound

Assignments

Set

Comments

Comments using ' or Rem

Constants/Literals

Empty, False, NothingNullTrue

Control flow

Do...Loop, For...NextFor Each...NextIf...Then...ElseSelect CaseWhile...WendWith

Conversions

Abs, Asc, AscB, AscWCBool, CByte, CCur, CDate, CDbl, Chr, ChrB, ChrW, CInt, CLng, CSng, CStr, DateSerial, DateValue, Fix, Hex, Int, Oct, SgnTimeSerial, TimeValue

Dates/Times

Date, DateAdd, DateDiff, DatePart, DateSerial, DateValue, Day, Hour, Minute, Month, MonthName, Now, Second, Time, TimeSerial, TimeValueWeekday, WeekdayName, Year

Declarations

Class, ConstDim, Function, Private, Property Get, Property Let, Property Set, Public, ReDim, Sub

Error Handling

Err, On Error

Expressions

Eval, ExecuteRegExpReplaceTest

Formatting Strings

FormatCurrency, FormatDateTimeFormatNumberFormatPercent

Input/Output

InputBox, LoadPictureMsgBox

Literals

Empty, FalseNothingNullTrue

Math

Atn, Cos, Exp, Log, Randomize, Rnd, Sin, Sqr, Tan

Miscellaneous

Eval Function, Execute StatementRGB Function

Objects

CreateObject, Err ObjectGetObjectRegExp

Operators

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

Options

Option Explicit

Procedures

Call, Function, Property Get, Property Let, Property Set, Sub

Rounding

Abs, Fix, Int, Round, Sgn

Script Engine ID

ScriptEngine, ScriptEngineBuildVersionScriptEngineMajorVersionScriptEngineMinorVersion

Strings

Asc, AscB, AscW, Chr, ChrB, ChrW, Filter, InStr, InStrB, InStrRevJoinLCase, Len, LenB, Left, LeftB, LTrim, Mid, MidB, ReplaceRight, RightB, RTrim, SpaceSplitStrCompStringStrReverseTrim, UCase

Variants

IsArray, IsDateIsEmptyIsNullIsNumericIsObjectTypeNameVarType

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View