Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Functions List of the language VBScript

Function categories:
VBScript data type functions:
CBool Returns an expression that has been converted to type Boolean
CByte Returns an expression that has been converted to type Byte
CDate Returns an expression that has been converted to type Date
CDbl Returns an expression that has been converted to type Double
CInt Returns an expression that has been converted to type Integer
CLng Returns an expression that has been converted to type Long
CSng Returns an expression that has been converted to type Single
CStr Returns an expression that has been converted to type String
IsArray Returns a Boolean value indicating whether a variable is an array
IsDate Returns a Boolean value indicating whether an expression can be converted to a date
IsEmpty Returns a boolean value indicating whether a variable has been initialized
IsNull Returns a boolean value that indicates whether an expression contains no valid data
IsNumeric Returns a Boolean value indicating whether an expression can be evaluated as a number.
IsObject Returns a Boolean value indicating whether an expression references a valid Automation object
TypeName Returns a string that provides data type information about a variable
VarType Returns a value indicating the data type of a variable
VBScript visualization functions (See also: Pm visualization methods):
InputBox Displays a window for value setting
MsgBox Displays a message in a window, waits for the user to click a button
VBScript mathematic functions (See also: Pm properties and methods mathematic and others):
Abs Absolute value of a number
Atn Returns the arctangent of a number
Cos Returns the cosine of an angle
Eval Calculated expression and return value
Exp Returns e (the base of natural logarithms) raised to a power
Fix Returns the integer portion of a number
FormatNumber Returns an expression formatted as a number
FormatPercent Returns an expression formatted as a percentage (multiplied by 100) with a trailing % character
Hex Returns a string representing the hexadecimal value of a number
Int Returns the integer portion of a number
Log Returns the natural logarithm of a number
Oct Returns a string representing the octal value of a number
Rnd Returns a random number
Round Returns a number rounded to a specified number of decimal places
Sgn Returns an integer indicating the sign of a number
Sin Returns the sine of an angle
Sqr Returns the square root of a number
Tan Returns the tangent of an angle
VBScript date and time functions (See also: Pm date and time methods):
Date Returns the current system date
DateAdd Returns a date to which a specified time interval has been added
DateDiff Returns the number of intervals between two dates
DatePart Returns the specified part of a given date
DateSerial Returns a date for a specified year, month, and day
DateValue Returns a date without time
Day Returns a integer (range from 1 to 31), representing the day of the month
FormatDateTime Returns an expression formatted as a date or time
Hour Returns a integer (range from 0 to 23), inclusive, representing the hour of the day
Minute Returns a integer (range from 0 to 59), representing the minute of the hour
Month Returns a integer (range from 1 to 12), representing the month of the year
MonthName Returns a string indicating the specified month
Now Returns the current date and time according to the setting of your computer's system date and time
Second Returns a integer (range from 0 to 59), representing the second of the minute
Time Returns the current system time without date
TimeSerial Returns Date containing the time for a specific hour, minute, and second
TimeValue Returns value of type Date containing the time
Weekday Returns a integer representing the day of the week
WeekdayName Returns a string indicating the specified day of the week
Year Returns a integer representing the year
VBScript string functions (See also: Pm string methods):
Asc Returns the ANSI character code corresponding to the first letter in a string
Chr Returns the character associated with the specified code
InStr Returns the position of the first occurrence of one string within another
InstrRev Returns the position of an occurrence of one string within another, from the end of string
Join Returns a string created by joining a number of substrings contained in an array
LCase Returns a string that has been converted to lowercase (lowercase)
Left Returns a specified number of characters (substring) from the left side of a string
Len Returns the number of characters in a string
LTrim Returns a copy of a string without leading spaces (left trim)
Mid Returns a specified number of characters from a string
Replace Returns a string in which a specified substring has been replaced with another substring a specified number of times
Right Returns a specified number of characters from the right side of a string
RTrim Returns a copy of a string without trailing spaces (right trim)
Space Returns a string consisting of the specified number of spaces
Split Returns a 1-dimensional array of substrings
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 string is reversed.
Trim Returns a copy of a string without both leading and trailing spaces
UCase Returns a string that has been converted to uppercase (uppercase)
VBScript array functions:
Array Returns 1-dim array of values
Filter Returns a subset of a string array based on a specified filter criteria.
LBound Returns the smallest available index for the indicated dimension of an array
UBound Returns the largest available index for the indicated dimension of an array
VbScript other functions:
CreateObject Creates and returns a reference to an Automation object
GetObject Returns a reference to an Automation object from a file
RGB Returns a whole number representing an RGB color value
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice