Proposed VBScript 2 features.
CATEGORY | FEATURES |
Array handling | Array*, Dim, ReDim, IsArray, Erase, Lbound, Ubound |
Assignments | =, Set |
Comments | REM or the comment character ' |
Constants | Const*, Dim, ReDim, ByRef*, ByVal, Call, Function, , Intrinsic constants* |
Control flow | Do...Loop, ForNext, For EachNext*, IfThenElse, Select Case (restricted functionality), WhileWend |
Conversions | Cbool, Cbyte, CCur*, Cdate, CDbl, CInt, CLng, CSng, CStr |
Dates/Times | Date, Time, DateAdd*, DateDiff**, DatePart*, DateSerial, TimeSerial, DateValue, TimeValue, Day, Month, Year, Hour, Minute, Second, Now, Timer, Weekday |
Formatting strings | FormatNumber**, FormatCurrency**, FormatPercent**, FormatDateTime**, Hex, MonthName**, Oct, WeekdayName** , Error Handling, On Error Resume Next, Err object |
Input/Output | InputBox, LoadPicture*, MsgBox |
Literals | & type character*, Empty, Nothing, Null, True, False |
Math | Atn, Cos, Exp, Sin, Tan, Log, Sqr, Randomize, Rnd |
Objects | CreateObject*, Dictionary**, GetObject*, FileSystemObject**, TextStream** |
Operators | Addition (+), Subtraction (­p;), Exponentiation (^), Modulus arithmetic (Mod), Multiplication (*), Division (/), Integer Division (\), Negation (­p;), String concatenation (&), Equality (=), Inequality (<>), Less Than (<), Less Than or Equal To (<=), Greater Than (>), Greater Than or Equal To (>=), Is, And, Or, Xor, Eqv, Imp |
Options | Explicit |
Rounding | Abs, Fix, Int, Round**, Sgn |
Script-engine identification | ScriptEngine**, ScriptEngineBuildVersion**, ScriptEngineMajorVersion**, |
Strings | Asc, AscB, AscW, Chr, ChrB, ChrW, Filter**, Instr, InStrB, InstrRev**, Join**, Len, LenB, Lcase, Ucase, Left, LeftB, Mid, MidB, Replace**, Right, RightB, Space, Split**, StrComp, String, StrReverse**, Ltrim, Rtrim, Trim |
Variants | IsArray, IsDate, IsEmpty, IsNull, IsNumeric, IsObject, TypeName*, VarType |
*New to VBScript 2 **Not included in any current version of Visual Basic. |