Exp Function
ReturnEThe power of a natural logarithm.
Exp (Number)
NumberThe parameter can be any valid numeric expression.Description
IfNumberIf the parameter value exceeds 709.782712893, an error occurs. ConstantEThe value is about 2.718282.
INT and fix Functions
Returns the integer part of a number.
INT (Number)
Fix (Number)
NumberThe parameter can be any valid numeric expression. IfNumberIf the parameter contains null, returnNull. Description
IntAndFixDelete all
String Function
Returns a string consisting of a specified length and repeated characters.
String (Number, Character) Parameters
Number
Returns the length of a string. IfNumberIf the parameter contains null, returnNull.
Character
Character
Dim bsurvey
'Show QuestionnaireConst bid = "1"
' questionnaire id
Bsurvey = false'Check whether the questionnaire has been shown.If instr (request. Cookies ("S"), ":" & Bid & ":") = 0 then 'If the survey table is not
Replace Method
Replace the text found in the regular expression search.
Object. Replace (String1, string2) Parameters
Object
Required. Always oneRegexpObject Name.
String1
Required.String1Is the string to be replaced by text.
String2
VBScript object
Description
Language Element
Provides access to events of the created class.
Class Object
The object used to save the primary key and value pair of data.
Dictionary object
Err
Contains information about running errors. Accept errors used to generate and clear runtime errorsRaiseAndClearMethod.Description
ErrAn object is an inherent object with a global scope: you do not haveCodeExample of creating it.ErrProperty is
How to handle timeout events?
1. IIS sets the execution time (90 s by default) for an endless execution process: DOCounter = counter + 1Response. write counter & ""Response. flushLOOP%>
2. Custom time. Use the program to set the time period of
Atn Function
Returns the arc tangent of a value.
Atn (Number)
NumberThe parameter can be any valid numeric expression.Description
AtnFunction compute the ratio of two sides of a right triangle (Number) And returns the radians of the
CCur Function
Return expression, which has been convertedCurrencyChild typeVariant.
CCur (Expression)
ExpressionThe parameter is any valid expression.Description
Generally, you can use the subtype Data Conversion Function to write code to show
VBScript encoding Convention
Coding conventions are some suggestions to help you write code using Microsoft Visual Basic Scripting Edition. Encoding conventions include the following:
Naming Conventions for objects, variables, and processes
CSng Function
Return expression, which has been convertedSingleChild typeVariant.
CSng (Expression)
ExpressionThe parameter is any valid expression.Description
Generally, code can be written using a subtype Conversion Function to show that the
DateSerial Functions
ReturnsDateChild typeVariant.
DateSerial(year, month, day)Arguments
Year
A numeric or numeric expression between 100 and 9999.
Month
Any numeric expression.
Day
Any numeric expression.Description
Specify a date, for example,
FormatDateTime Function
Return expression, which has been formatted as a date or time.
FormatDateTime(Date[, NamedFormat])Parameters
Date
Required. The date expression to be formatted.
NamedFormat
Optional. Indicates the value of the date/time
FormatNumber Function
Return expression, which has been formatted as a value.
FormatNumber( expression [,NumDigitsAfterDecimal [,IncludeLeadingDigit [,UseParensForNegativeNumbers [,GroupDigits]]]])Arguments
Expression
Required. The expression to be
IsNumeric Function
Returns a Boolean value to indicate whether the expression value is a number.
IsNumeric (Expression)
ExpressionThe parameter can be any expression.Description
If the entireExpressionRecognized as a number,IsNumericFunction
Mid Function
Returns a specified number of characters from a string.
Mid (String, start [, length])Parameters
String
String expression, which returns characters. IfStringContains Null, then returnNull.
Start
StringThe start position of the
Raise Method
Generate runtime error
object.Raise(number, source, description, helpfile, helpcontext)Parameters
Object
Should beErrObject.
Number
LongThe integer subtype, indicating the nature of the error. The VBScript error range is between 0 and 65
RegExp object
Supports simple regular expressions.Description
The following code illustratesRegExpObject usage:
Function RegExpTest (patrn, strng) Dim regEx, Match, Matches'Create a variable.Set regEx = NewRegExp'Create a regular expression.RegEx.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service