A brief description of the math and other built-in functions available in VBScript.
Atn(number) Returns the arctangent of a number. Cos(number) Returns the cosine of an angle. Fix(number) Returns the integer portion of a number. Join(list[, delimiter]) Returns a string created by joining a number of substrings contained in an array. LBound(arrayname[, dimension]) Returns the smallest available subscript for the indicated dimension of an array. LoadPicture(picturename) Returns a picture object. Available only on 32-bit platforms. Log(number) Returns the natural logarithm of a number. Oct(number) Returns a string representing the octal value of a number. ScriptEngine Returns a string representing the scripting language in use (VBScript, Jscript, VBA). ScriptEngineBuildVersion Returns the build version number of the scripting engine in use. ScriptEngineMajorVersion Returns the major version number of the scripting engine in use. ScriptEngineMinorVersion Returns the minor version number of the scripting engine in use. Sgn(number) Returns an integer indicating the sign of a number. Sin(number) Returns the sine of an angle. Space(number) Returns a string consisting of the specified number of spaces. Returns a zero-based, one-dimensional array containing a specified number of substrings. Tan(number) Returns the tangent of an angle. TypeName(varname) Returns a string that provides Variant subtype information about a variable. VarType(varname) Returns a value indicating the subtype of a variable.
weekdays(0) = "Mon"
weekdays(1) = "Tue"
weekdays(2) = "Wed"
weekdays(3) = "Thu"
weekdays(4) = "Fri"
weekdays(5) = "Sat"
weekdays(6) = "Sun"
“I think that I've learned to relax, and trust in and hire very talented people, and trust in their abilities a little more” - Mark Romanek
Loop Statements - Do-Loop, FOR-Next, For Each, While.
Function - Write a custom VBScript function.