VBScript Functions

VBScript has an assortment of intrinsic functions that you can use in your scripts. The VBScript documentation on the Microsoft Web site contains a full reference for these functions. Table 32.3 shows the functions that exist for performing different types of operations. (Because you can use some functions for several types of operations, they appear multiple times in the table.)

Table 32.3. VBScript Functions
Type of Operation Function Names
Array operations IsArray, LBound, UBound
Conversions Abs, Asc, AscB, AscW, Chr, ChrB, ChrW, Cbool, CByte, CDate, CDbl, CInt, CLng, CSng, Cstr, DateSerial, DateValue, Hex, Oct, Fix, Int, Sgn, TimeSerial, TimeValue
Dates and times Date, Time, DateSerial, DateValue, Day, Month, Weekday,

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.