Promotic

Functions list of the language VBScript

Function categories:
VBScript data type functions:
CBoolReturns an expression that has been converted to the value of the Boolean type
CByteReturns an expression that has been converted to the value of the Byte type
CDateReturns an expression that has been converted to the value of the Date type
CDblReturns an expression that has been converted to value of the Double type
CIntReturns an expression that has been converted to the value of the Integer type
CLngReturns an expression that has been converted to a value of the Long type
CSngReturns an expression that has been converted to a value of the Single type
CStrReturns an expression that has been converted to a value of the String type
IsArrayReturns a Boolean value - specifies whether the variable is an array
IsDateReturns a Boolean value - specifies whether an expression can be converted to a date
IsEmptyReturns a boolean value - specifies whether a variable has been initialized
IsNullReturns a boolean value that specifies whether an expression contains no valid data
IsNumericReturns a Boolean value - specifies whether an expression can be evaluated as a number.
IsObjectReturns a Boolean value - specifies whether an expression references a valid Automation object
TypeNameReturns a string that provides data type information about a variable
VarTypeReturns a value indicating the data type of a variable
VBScript visualization functions (See also: Pm visualization methods):
InputBoxDisplays a window for entering the value
MsgBoxDisplays a message in the window, waits for the user to click a button
VBScript mathematic functions (See also: Pm properties and methods mathematic and others):
AbsAbsolute value of a number
AtnReturns the arctangent of a number
CosReturns the cosine of an angle
EvalCalculate expression and returns value
ExpReturns e (the base of natural logarithms) raised to a power
FixReturns the integer portion of a number
FormatNumberReturns an expression formatted as a number
FormatPercentReturns an expression formatted as a percentage (multiplied by 100) with a trailing "%" character
HexReturns a string that represents the value of a number in hexadecimal
IntReturns the integer portion of a number
LogReturns the natural logarithm of a number
OctReturns a string that represents the octal value of a number
RndReturns a random number
RoundReturns a number rounded to a specified number of decimal places
SgnReturns an integer indicating the sign of a number
SinReturns the sine of an angle
SqrThe square root of a number
TanReturns the tangent of an angle
VBScript date and time functions (See also: Pm date and time methods):
DateReturns the current system date
DateAddReturns a date to which a specified time-span has been added
DateDiffReturns the number of time-spans between two dates
DatePartReturns the specified part of a given date
DateSerialReturns a date for a specified year, month, and day
DateValueReturns a date without time
DayDay of the month (integer 1-31)
FormatDateTimeReturns an expression formatted as date or time
HourThe hour of the day (integer 0-23)
MinuteThe minute of the hour (integer 0-59)
MonthMonth (integer 1-12)
MonthNameReturns the month name
NowReturns the current date and time
SecondThe second of the minute (integer 0-59)
TimeReturns the current system time without date
TimeSerialReturns a value of the Date type containing the time for a specific hour, minute, and second
TimeValueReturns a value of the Date type containing the time
WeekdayDay of the week
WeekdayNameReturns the name of day in week
YearYear (integer)
VBScript string functions (See also: Pm string methods):
AscReturns the ANSI character code corresponding to the first letter in the string
ChrReturns the character associated with the specified code
InStrReturns the position of the first occurrence of one string within another
InstrRevReturns the position of an occurrence of one string within another, from the end of string
JoinReturns a string created by joining a number of substrings contained in the array
LCaseReturns a string that has been converted to lowercase
LeftReturns a specified number of characters (substring) from the left side of a string
LenReturns the number of characters in the string
LTrimReturns a copy of a string without leading spaces (left trim)
MidReturns a specified number of characters from a string
ReplaceReturns string in which a specified substring has been replaced with another substring a specified number of times
RightReturns a specified number of characters from the right side of a string
RTrimReturns a copy of a string without trailing spaces (right trim)
SpaceReturns a string consisting of the specified number of spaces
SplitReturns a 1-dimensional array of substrings
StrCompReturns a value indicating the result of a string comparison
StringReturns a repeating character string of the length specified
StrReverseReturns a string in which the character order of a specified string is reversed
TrimReturns a copy of a string without both leading and trailing spaces
UCaseReturns a string that has been converted to uppercase
VBScript array functions:
ArrayReturns 1-dimensional array of values
FilterReturns a subset of a string array based on a specified filter criteria.
LBoundReturns the smallest available index for the indicated dimension of the array
UBoundReturns the largest available index for the indicated dimension of the array
VbScript other functions:
CreateObjectCreates and returns an Automation object
GetObjectReturns the Automation object from the file
RGBReturns a integer that represents an RGB color value
PROMOTIC 9.0.21 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.