VBScript Language Reference

[ VBScript  HTA  KiXtart  AutoIt  Batch  PowerShell  Windows Command Lines  Other Command Line Utilities  ]


    COM Objects

  • WScript - Provides a series of helpful properties and methods directly avai... 
  • Functions

  • Abs - Absolute value 
  • Array - Returns a Variant containing an array 
  • Asc - ANSI character code 
  • Atn - Arctangent, or inverse tangent, expressed in radians 
  • CBool - Changes a value to a Boolean 
  • CByte - Changes specified value to a byte 
  • CCur - Changes specified expression to Currency 
  • CDate - Changes specified date value to a date 
  • CDbl - Changes value to a double 
  • Chr - Character by code 
  • CInt - Changes a value to an integer 
  • CLng - Converts value to a long 
  • Cos - Cosine of an angle 
  • CreateObject - Creates and returns a reference to an Automation object 
  • CSng - Changes value to a single 
  • CStr - Changes value to a string 
  • Date - Current system date 
  • DateAdd - Add interval to date 
  • DateDiff - Number of intervals between dates 
  • DatePart - Part of a specified date 
  • DateSerial - Date for a specified year, month and day 
  • DateValue - Sets value as a date 
  • Day - Day of the month 
  • Escape - Encodes a string so it contains only ASCII characters 
  • Eval - Evaluates an expression and returns the result 
  • Exp - Raises e to the power of a number 
  • Filter - Creates an array containing a subset of a string array based on s... 
  • Fix - Integer portion of a number 
  • FormatCurrency - Formats a currency value 
  • FormatDateTime - Formats a date or time value 
  • FormatNumber - Formats a value as a number 
  • FormatPercent - Formats a value as a precentile 
  • GetLocale - Query locale ID 
  • GetObject - Establishes a reference to a COM object 
  • GetRef - Creates reference to a procedure 
  • Hex - Converts a value to a hexadecimal string  
  • Hour - The hour of the day 
  • InputBox - Gathers input from a dialog box prompt 
  • InStr - Returns the position of the first occurrence of one string within... 
  • InStrRev - Returns the position of an occurrence of one string within anothe... 
  • Int - Integer portion of a number 
  • IsArray - Indicates whether a variable is an array 
  • IsDate - Indicates if an expression can be converted to a date 
  • IsEmpty - Indicates if a variable has been initialized 
  • IsNull - Indicates if an expression contains no valid data 
  • IsNumeric - Indicates if an expression can be evaluated as a number 
  • IsObject - Indicates if an expression references a valid Automation object 
  • Join - Creates a string by joining substrings contained in an array 
  • LBound - Returns the smallest available subscript for an array 
  • LCase - Converts a string to lowercase 
  • Left - Returns a specified number of characters from the left side of a ... 
  • Len - The number of characters in a string 
  • LoadPicture - Returns a picture object 
  • Log - Natural logarithm of a number 
  • LTrim - Removes leading spaces from a string 
  • Mid - Returns a specified number of characters from a string 
  • Minute - Returns the minute of the current hour (0 - 59) 
  • Month - Returns the month of the year(1 - 12) 
  • MonthName - Name for specified month 
  • MsgBox - Displays a message in a dialog box 
  • Now - Current date and time 
  • Oct - Returns the octal value of a number 
  • Replace - Replaces a specified substring with a string 
  • RGB - Number representing an RGB color value 
  • Right - Returns a specified number of characters from the right side of a... 
  • Rnd - Returns a random number 
  • Round - Returns a number rounded to a specified number of decimal places 
  • RTrim - Removes trailing spaces from a string 
  • ScriptEngine - Returns the name of the scripting language in use 
  • ScriptEngineBuildVersion - Returns the build version number of the scripting language in use 
  • ScriptEngineMajorVersion - Returns the major version number of the scripting language in use 
  • ScriptEngineMinorVersion - Returns the minor version number of the scripting language in use 
  • Second - Returns the second of the minute 
  • SetLocale - Sets the global locale 
  • Sgn - The sign of a number 
  • Sin - The sine of an angle 
  • Space - Returns a string consisting of the specified number of spaces 
  • Split - Returns an array containing a specified number of substrings 
  • Sqr - The square root of a number 
  • StrComp - Returns a value indicating the result of a string comparison 
  • String - Returns a repeating character string of the length specified 
  • StrReverse - Returns a string in which the character order of a specified stri... 
  • Tan - The tangent of an angle 
  • Time - Current system time 
  • Timer - Number of seconds since 12:00 AM (midnight) 
  • TimerSerial - The time for a specific hour, minute, and second 
  • TimeValue - Date value containing the time 
  • Trim - Removes leading and trailing spaces from a string 
  • TypeName - Name of variable type for a specified variable 
  • UBound - Returns the largest available subscript for the indicated dimensi... 
  • UCase - Converts a string to uppercase 
  • Unescape - Decodes a string encoded with the Escape function 
  • VarType - Returns a value indicating the subtype of a variable 
  • Weekday - A whole number representing the day of the week 
  • WeekdayName - A string indicating the specified day of the week 
  • Year - A whole number representing the year 
  • Keywords

  • Empty - Indicates an uninitialized variable value 
  • False - Value equal to 0 
  • Nothing - Disassociates an object variable from an object 
  • Null - Used to indicate a variable contains no valid data 
  • True - Value equal to -1 
  • Operators

  • & - Concatenates two expressions 
  • * - Multiplies two numbers 
  • + - Sums two numbers 
  • - - Finds the difference between two numbers 
  • / - Divides two numbers 
  • = - Assigns a value to a variable or writable property 
  • \ - Divides two numbers and returns an integer result 
  • ^ - Raises a number to a power 
  • And - Performs a logical conjunction on two expressions 
  • Eqv - Performs a logical equivalence on two expressions 
  • Imp - Performs a logical implication on two expressions 
  • Is - Compares two object reference variables 
  • Mod - Divides two numbers and returns only the remainder 
  • Not - Performs logical negation on an expression 
  • Or - Performs a logical disjunction on two expressions 
  • Xor - Performs a logical exclusion on two expressions 
  • Statements

  • ' - Includes expanatory remarks within the code of a script 
  • Call - Transfers control to a Sub or Function procedure. The optional ar... 
  • Case - Identifies a statement to run depending upon the value of an expr... 
  • Class - Declares the name of a class 
  • Const - Declares constants to be used in place of literal values 
  • Dim - Declares variables and allocates storage space 
  • Do - Repeats a block of statements while a condition is True or until ... 
  • Each - Repeats statements for each element in an array or collection 
  • Else - Executes a group of statements if a condition is not true 
  • ElseIf - Specifies additional conditional actions in an "if" statement 
  • End - Marks the end of an "if", "select", "with" or "function" statemen... 
  • Erase - Reinitializes the elements of fixed-size arrays 
  • Execute - Executes one or more specified statements 
  • ExecuteGlobal - Executes one or more specified statements in the global namespace... 
  • Exit - Exits a block code 
  • Explicit - Used with the Option keyword to force the explicit declaration of... 
  • For - Repeats a group of statements a specified number of times 
  • Function - Declares the name, arguments, and code that form the body of a Fu... 
  • If - Executes a group of statements based on a condition 
  • Loop - Repeats a block of statements while a condition is True or until ... 
  • Next - Identifies the end of a For loop 
  • On Error - Enables or disables error-handling 
  • Option - Used with the Explicit keyword to force the explicit declaration ... 
  • Private - Declares private variables in a Class block (a private variable) 
  • Public - Declares public variables 
  • Randomize - Initializes the random-number generator 
  • ReDim - Declares arrays and reallocates its storage space 
  • Rem - Includes expanatory remarks within the code of a script 
  • Select - Executes on group of statements depending upon the value of an ex... 
  • Set - Assigns an object reference to a variable or property 
  • Stop - Suspends execution 
  • Sub - Declares the name, arguments and code the for the body of a Sub P... 
  • Then - Executes a group of statements if a condition is not true 
  • Wend - Indicates the end of a While statement 
  • While - Executes a series of statements as longs as a given condition is ... 
  • With - Executes a series of statements on a single object 

 

iTripoli prides itself on providing top notch customer service

Find answers or open a ticket to ask directly, when opening a ticket we will suggest relavant articles to help you get answers as quickly and accurately as possible. Visit our support center now!

Please visit our full support center to find answers quickly or submit questions or feedback.