• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

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, Year, Hour, Minute, Second, Now, TimeSerial, TimeValue
Input/output InputBox, MsgBox
Math Atn, Cos, Sin, Tan, Exp, Log, Sqr, Randomize, Rnd
Objects IsObject
Strings Asc, AscB, AscW, Chr, ChrB, ChrW, Instr, InStrB, Len, LenB, LCase, UCase, Left, LeftB, Mid, MidB, Right, RightB, Space, StrComp, String, LTrim, RTrim, Trim
Variants IsArray, IsDate, IsEmpty, IsNull, IsNumeric, IsObject, VarType



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint