Language Element
Description
And Operator
Performs a logical conjunction on two expressions.
Asc Function
Returns the ANSI character code corresponding to the first letter in
a string.
CBool Function
Returns an expression that has been converted to a
Variant of
subtype
Boolean.
CByte Function
Returns an expression that has been converted to a
Variant of
subtype
Byte.
CCur Function
Returns an expression that has been converted to a
Variant of
subtype
Currency.
CDate Function
Returns an expression that has been converted to a
Variant of
subtype
Date.
CDbl Function
Returns an expression that has been converted to a
Variant of
subtype
Double.
Chr Function
Returns the character associated with the specified ANSI character code.
CInt Function
Returns an expression that has been converted to a
Variant of
subtype
Integer.
Class Object
Provides access to the events of a created class.
Clear Method
Clears all property settings of the
Err object.
CLng Function
Returns an expression that has been converted to a
Variant of
subtype
Long.
CSng Function
Returns an expression that has been converted to a
Variant of
subtype
Single.
CStr Function
Returns an expression that has been converted to a
Variant of
subtype
String.
Date and Time Constants
List of constants defining days of week and other constants used in Date
and Time operations.
DateAddFunction
Returns a date to which a specified time interval has been added.
Day Function
Returns a whole number between 1 and 31, inclusive, representing the
day of the month.
Do...Loop Statement
Repeats a block of statements while a condition is
True or until
a condition becomes
True.
Empty
Indicates an uninitialized variable value.
Eqv Operator
Performs a logical equivalence on two expressions.
Erase Statement
Reinitializes the elements of fixed-size arrays and deallocates dynamic-array
storage space.
Err Object
Contains information about run-time errors.
Execute Method
Executes a regular expression search against a specified string.
Exit Statement
Exits a block of
Do...Loop,
For...Next,
Function,
or
Sub code.
Exp Function
Returns
e (the base of natural logarithms) raised to a power.
False
Keyword that has a value equal to zero.
Filter Function
Returns a zero-based array containing a subset of a string array based
on a specified filter criteria.
FormatCurrency Function
Returns an expression formatted as a currency value using the currency
symbol defined in the system control panel.
FormatPercent Function
Returns an expression formatted as a percentage (multiplied by 100) with
a trailing % character.
Function Statement
Declares the name, arguments, and code that form the body of a
Function procedure.
GetRef Function
Returns a reference to a procedure that can be bound to an event.
Hex Function
Returns a string representing the hexadecimal value of a number.
Hour Function
Returns a whole number between 0 and 23, inclusive, representing the
hour of the day.
IgnoreCase Property
Sets or returns a Boolean value that indicates if a pattern search is
case-sensitive or not.
Imp Operator
Performs a logical implication on two expressions.
InputBox Function
Displays a prompt in a dialog box, waits for the user to input text or
click a button, and returns the contents of the text box.
InStr Function
Returns the position of the first occurrence of one string within another.
InStrRev Function
Returns the position of an occurrence of one string within another, from
the end of string.
IsArray Function
Returns a Boolean value indicating whether a variable is an array.
IsDate Function
Returns a Boolean value indicating whether an expression can be converted
to a date.
IsEmpty Function
Returns a Boolean value indicating whether a variable has been initialized.
IsNull Function
Returns a Boolean value that indicates whether an expression contains
no valid data (
Null).
IsNumeric Function
Returns a Boolean value indicating whether an expression can be evaluated
as a number.
IsObject Function
Returns a Boolean value indicating whether an expression references a
valid Automation object.
Join Function
Returns a string created by joining a number of substrings contained
in an array.
LBound Function
Returns the smallest available subscript for the indicated dimension
of an array.
Left Function
Returns a specified number of characters from the left side of a string.
Len Function
Returns the number of characters in a string or the number of bytes required
to store a variable.
Match Object
Provides access to the read-only properties of a regular expression match.
Mid Function
Returns a specified number of characters from a string.
Minute Function
Returns a whole number between 0 and 59, inclusive, representing the
minute of the hour.
Mod Operator
Divides two numbers and returns only the remainder.
Month Function
Returns a whole number between 1 and 12, inclusive, representing the
month of the year.
MsgBox Function
Displays a message in a dialog box, waits for the user to click a button,
and returns a value indicating which button the user clicked.
Now Function
Returns the current date and time according to the setting of your computer's
system date and time.
Nothing
Disassociates an object variable from any actual object.
Null
Indicates that a variable contains no valid data.
Oct Function
Returns a string representing the octal value of a number.
Operator Precedence
List showing the order of precedence for various operators used in VBScript.
Or Operator
Performs a logical disjunction on two expressions.
Pattern Property
Sets or returns the regular expression pattern being searched for.
PropertyGet Statement
Declares the name, arguments, and code that form the body of a
Property procedure that gets (returns) the value of a property.
PropertyLet Statement
Declares the name, arguments, and code that form the body of a
Property procedure that assigns the value of a property.
PropertySet Statement
Declares the name, arguments, and code that form the body of a
Property procedure that sets a reference to an object.
ReDim Statement
Declares dynamic-array variables, and allocates or reallocates storage
space at procedure level.
Replace Function
Returns a string in which a specified substring has been replaced with
another substring a specified number of times.
RGB Function
Returns a whole number representing an RGB color value.
Right Function
Returns a specified number of characters from the right side of a string.
Round Function
Returns a number rounded to a specified number of decimal places.
Second Function
Returns a whole number between 0 and 59, inclusive, representing the
second of the minute.
Select Case Statement
Executes one of several groups of statements, depending on the value
of an expression.
Set Statement
Assigns an object reference to a variable or property.
Sgn Function
Returns an integer indicating the sign of a number.
Source Property
Returns or sets the name of the object or application that originally
generated the error.
Space Function
Returns a string consisting of the specified number of spaces.
Split Function
Returns a zero-based, one-dimensional array containing a specified number
of substrings.
String Function
Returns a repeating character string of the length specified.
StrReverse Function
Returns a string in which the character order of a specified string is
reversed.
Sub Statement
Declares the name, arguments, and code that form the body of a
Sub
procedure.
Subtraction Operator (-)
Finds the difference between two numbers or indicates the negative value
of a numeric expression.
Terminate Event
Occurs when an instance of the associated class is terminated.
Test Method
Executes a regular expression search against a specified string.
Time Function
Returns a
Variant of subtype
Date indicating the current
system time.
Timer Function
Returns the number of seconds that have elapsed since 12:00 AM (midnight).
TimeSerial Function
Returns a
Variant of subtype
Date containing the time for
a specific hour, minute, and second.
Trim Function
Returns a copy of a string without leading or trailing spaces.
True
Keyword that has a value equal to -1.
TypeName Function
Returns a string that provides
Variant subtype information about
a variable.
UBound Function
Returns the largest available subscript for the indicated dimension of
an array.
Value Property
Returns the value or text of a match found in a search string.
Xor Operator
Performs a logical exclusion on two expressions.
Language Element
Description
Asc Function
Returns the ANSI character code corresponding to the first letter in
a string.
CBool Function
Returns an expression that has been converted to a
Variant of
subtype
Boolean.
CByte Function
Returns an expression that has been converted to a
Variant of
subtype
Byte.
CCur Function
Returns an expression that has been converted to a
Variant of
subtype
Currency.
CDate Function
Returns an expression that has been converted to a
Variant of
subtype
Date.
CDbl Function
Returns an expression that has been converted to a
Variant of subtype
Double.
Chr Function
Returns the character associated with the specified ANSI character code.
CInt Function
Returns an expression that has been converted to a
Variant of
subtype
Integer.
CLng Function
Returns an expression that has been converted to a
Variant of
subtype
Long.
CSng Function
Returns an expression that has been converted to a
Variant of
subtype
Single.
CStr Function
Returns an expression that has been converted to a
Variant of
subtype
String.
DateAddFunction
Returns a date to which a specified time interval has been added.
Day Function
Returns a whole number between 1 and 31, inclusive, representing the
day of the month.
Exp Function
Returns
e (the base of natural logarithms) raised to a power.
Filter Function
Returns a zero-based array containing subset of a string array based
on a specified filter criteria.
FormatCurrency Function
Returns an expression formatted as a currency value using the currency
symbol defined in the system control panel.
FormatPercent Function
Returns an expression formatted as a percentage (multiplied by 100) with
a trailing % character.
GetRef Function
Returns a reference to a procedure that can be bound to an event.
Hex Function
Returns a string representing the hexadecimal value of a number.
Hour Function
Returns a whole number between 0 and 23, inclusive, representing the
hour of the day.
InputBox Function
Displays a prompt in a dialog box, waits for the user to input text or
click a button, and returns the contents of the text box.
InStr Function
Returns the position of the first occurrence of one string within another.
InStrRev Function
Returns the position of an occurrence of one string within another, from
the end of string.
IsArray Function
Returns a
Boolean value indicating whether a variable is an array.
IsDate Function
Returns a
Boolean value indicating whether an expression can be
converted to a date.
IsEmpty Function
Returns a
Boolean value indicating whether a variable has been
initialized.
IsNull Function
Returns a
Boolean value that indicates whether an expression contains
no valid data (
Null).
IsNumeric Function
Returns a
Boolean value indicating whether an expression can be
evaluated as a number.
IsObject Function
Returns a
Boolean value indicating whether an expression references
a valid Automation object.
Join Function
Returns a string created by joining a number of substrings contained
in an array.
LBound Function
Returns the smallest available subscript for the indicated dimension
of an array.
Left Function
Returns a specified number of characters from the left side of a string.
Len Function
Returns the number of characters in a string or the number of bytes required
to store a variable.
Mid Function
Returns a specified number of characters from a string.
Minute Function
Returns a whole number between 0 and 59, inclusive, representing the
minute of the hour.
Month Function
Returns a whole number between 1 and 12, inclusive, representing the
month of the year.
MsgBox Function
Displays a message in a dialog box, waits for the user to click a button,
and returns a value indicating which button the user clicked.
Now Function
Returns the current date and time according to the setting of your computer's
system date and time.
Oct Function
Returns a string representing the octal value of a number.
Replace Function
Returns a string in which a specified substring has been replaced with
another substring a specified number of times.
RGB Function
Returns a whole number representing an RGB color value.
Right Function
Returns a specified number of characters from the right side of a string.
Round Function
Returns a number rounded to a specified number of decimal places.
Second Function
Returns a whole number between 0 and 59, inclusive, representing the
second of the minute.
Sgn Function
Returns an integer indicating the sign of a number.
Space Function
Returns a string consisting of the specified number of spaces.
Split Function
Returns a zero-based, one-dimensional array containing a specified number
of substrings.
String Function
Returns a repeating character string of the length specified.
StrReverse Function
Returns a string in which the character order of a specified string is
reversed.
Time Function
Returns a Variant of subtype Date indicating the current system time.
Timer Function
Returns the number of seconds that have elapsed since 12:00 AM (midnight).
TimeSerial Function
Returns a
Variant of subtype
Date containing the time for
a specific hour, minute, and second.
Trim Function
Returns a copy of a string without leading or trailing spaces.
TypeName Function
Returns a string that provides
Variant subtype information about
a variable.
UBound Function
Returns the largest available subscript for the indicated dimension of
an array.