• 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 accompanying CD contains a full reference for these functions. Table 33.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 33.3. VBScript Functions
Type of OperationFunction Names
array operationsIsArray, LBound, UBound
conversionsAbs, 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 timesDate, Time, DateSerial, DateValue, Day, Month, Weekday, Year, Hour, Minute, Second, Now, TimeSerial, TimeValue
input/outputInputBox, MsgBox
mathAtn, Cos, Sin, Tan, Exp, Log, Sqr, Randomize, Rnd
objectsIsObject
stringsAsc, AscB, AscW, Chr, ChrB, ChrW, Instr, InStrB, Len, LenB, LCase, UCase, Left, LeftB, Mid, MidB, Right, RightB, Space, StrComp, String, LTrim, RTrim, Trim
variantsIsArray, 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