Microsoft® Visual Basic® Scripting Edition
VBScript Features
Tutorial  new version 5 @ms Contents
Arrays see also: Enumerate Object, For Each. Dynamic: DIM array():REDIM array(size)
Array, Dictionary
IsArray

Dim varname(subscripts), ReDim [Preserve] varname(subscripts)
Private, Public
LBound, UBound
Erase
Split (expression[, delimiter[, count[, compare]]])
Filter ( list, value [, include? [, compare]])
Join
(list[, delimiter])
Dates/Times
Date, Time, Now
DateAdd, DateDiff
DateSerial, DateValue

TimeSerial, TimeValue
Year, Month, Day
Hour, Minute, Second
Weekday
, FormatDateTime , DatePart
Server.ScriptTimeout
Strings See: Regular Expressesion Patterns at MSDN
String concatenation (&)
Instr ([start, ]string1, string2[, compare])
InStrB, InstrRev
Replace (expression, find, replacewith[, start[, count[, compare]]])
Left(string, length), LeftB
Mid(string, start, length), MidB
Right(string, length), RightB
LTrim(string), RTrim, Trim
Asc, AscB, AscW
Chr, ChrB, ChrW
Len, LenB
LCase, UCase
Space, String
StrComp
StrReverse

StripHTML(string)
Control flow
Do...Loop
For...Next
For Each...Next
If  condition Then [stmts] Else [stmts]
If condition Then ¶ [stmts] ¶ [ElseIf con Then ¶ [stmts]] ¶ [Else ¶ [stmts]] ¶ End If
Select Case tstexpr ¶[Case [Else] expr [,expr] ¶ stmts ] ¶ End Select
While...Wend
Call, Function, Sub
Equality (=), Inequality (<>)
Less Than (<), Less Than or Equal To (<=)
Greater Than (>), Greater Than or Equal To (>=)
And, Or, Xor
Eqv, Imp
IsArray, IsDate, IsEmpty, IsNull, IsNumeric, IsObject
object Is object
VarType, TypeName
Conversions
Asc, AscB, AscW
Chr, ChrB, ChrW
CBool, CByte
CCur,
CInt, CSng, CDbl, CLng
CStr
CDate
DateSerial, DateValue
TimeSerial, TimeValue
Hex, Oct
Fix, Int
Sgn
Declarations
Const
Dim, ReDim
Private, Public
Function, Sub
Input/Output
InputBox, MsgBox
LoadPicture, imgClass
Request, Response
FileSystem, File, TextStream
Active Data Objects (ADO) adodb.Stream
FormatCurrency ( expr [, DigitsAfterDec
FormatDateTime
FormatNumber
FormatPercent
Number as text
Math
Addition (+), Subtraction (-)
Exponentiation (^)
Modulus arithmetic (Mod)
Multiplication (*), Division (/), Integer Division (\)
Negation (-)
Abs
Atn, Cos, Sin, Tan
Exp, Log, Sqr
Randomize, Rnd

Round, Int, Fix,
Sgn
Objects Set, GetObject, CreateObject, objects, components Variants VarType, TypeName
Comments Comments using ' or Rem
Constants/Literals Empty, Nothing, Null, True, False Error Handling On Error, Err, Option Explicit
Script Engine ID ScriptEngine, ScriptEngineBuildVersion
ScriptEngineMajorVersion, ScriptEngineMinorVersion