Arguments: Digit indicates the value of the number of digits on the right side of the decimal point. The default is -1, indicating that it is
The area setting of the computer. LeadingDigit i indicates the value of the display bits on the right side of the decimal point. Default value -
1. Instruct it to use the area setting of the computer. PAREN indicates the value of the number of digits on the right side of the decimal point. default
The value is -1, indicating the area setting of the computer. GroupDigit i Indicates the number of display bits on the right side of the decimal point
Numerical value. The default is -1, indicating the area setting of the computer. .
Example: <% = FormatNumber (45.324567, 3)%>
RESULT: 45.325
Formatpercent ()
Function: Return to the expression, this expression has been formatted as a percentage of a percentage of the percentage (multiplication
Arguments: start for the starting value of the search, STRTOBESEARCHED accepts the search string
StrsearchFor To search for characters. Comparity comparison method (see ASP constant)
EXAMPLE: <%
strText = "this is a test !!"
POS = INSTR (Strtext, "A") Response.write POS
%>
RESULT: 9
INSTRREV ()
Function: Same as above, just from the last search of the string
SYNTAX: Instrrev ([Start,] strsfor [, compare])
Arguments: Ib.
EXAMPLE: <%
strText = "this is a test !!"
POS = INSTRREV (Strtext, "S")
Response.write POS
%>
RESULT: 13
Int ()
Function: Returns the numerical type, not rounded, note that the value is not more than its integer.
SYNTAX: INT (NUMBER)
Arguments:
EXAMPLE: <% = int (32.89)%> <% = int (-3.33)%>
Result: 32 -4
Isarray ()
Function: Judging whether an object is an array and returns a Boolean value.
Syntax: Isarray (Name)
Arguments:
EXAMPLE: <%
strTest = "Test!"
Response.write isarray (StRTEST)
%>
Result: False
Isdate ()
Function: Judging whether an object is a date, return to Boolean
Syntax: Isdate (Expression)
Arguments: Expression is any valid expression.
EXAMPLE: <%
strTest = "8/4/99"
Response.write isdate (StRTEST)
%>
Result: True
ISempty ()
Function: Judging whether an object is initialized, return to the Boolean value.
SYNTAX: ISEMPTY (EXPRESSION)
Arguments:
EXAMPLE: <%
DIM I
Response.Write ISempty (i)
%>
Result: True
Isnull ()
Function: Judging whether an object is empty, return to the Boolean value.
Syntax: isnull (Expression)
Arguments:
EXAMPLE: <%
DIM I
Response.write isnull (i)
%>
Result: False
Isnumeric ()
Function: Judging whether an object is a number and returns a Boolean value.
SYNTAX: IsNumeric (Expression)
Arguments:
EXAMPLE: <%
i = "345"
Response.write isnumeric (i)
%>
Result: True
Even if the number adds quotation marks, ASP still thinks it is a number.
IsObject ()
Function: Judging whether an object is an object, return to the Boolean value.
Syntax: IsObject (Expression)
Arguments:
EXAMPLE: <%
Set con = Server.createObject ("AdoDb.Connection")
Response.Write IsObject (con)
%>
Result: True
Lbound ()
Function: Returns the minimum available subscript of the specified array dimension.
Syntax: lbound (arrayname [, dimension])
Arguments:; Dimension indicates which dimension to return. Use 1 to represent the first dimension, 2 represents the second dimension, and so on. If the Dimension parameter is omitted, the default value is 1.
EXAMPLE: <%
i = array ("Monday", "Tuesday", "Wednesday")
Response.write lbound (i)
%>
Result: 0
Lcase ()
Function: Returns the lowercase form of the string
Syntax: Lcase (String)
Arguments: string is any valid string expression.
EXAMPLE: <%
strTrtest = "this is a test!"
Response.write Lcase (StRTEST)
%>
Result: this is a test!
Left ()
Function: Returns the previous character (including Changth characters) previously character (including Changth characters) on the left side of the string.
Syntax: Left (String, Length)
Arguments:
EXAMPLE: <%
strTrtest = "this is a test!"
Response.write Left (strTest, 3)
%>
Result: thi
Len ()
Function: Returns the length of the string.
Syntax: Len (String | Varname)
Arguments:
EXAMPLE: <%
strTrtest = "this is a test!"
Response.write len (strTest)
%>
RESULT: 15
Ltrim ()
Function: Remove the space left on the left side of the string.
Syntax: Ltrim (String)
Arguments:
EXAMPLE: <%
strTrtest = "this is a test!"
Response.write Ltrim (StRTEST)
%>
Result: this is a test!
MID ()
Function: Returns a string of specific lengths (starting from START, length length).
Syntax: MID (String, Start [, Length])
Arguments:
EXAMPLE: <%
Strtest = "this is a test! Today is monday."
Response.write Mid (Strtest, 17, 5)
%>
Result: Today
Minute ()
Function: Return time division.
Syntax: Minute (TIME)
Arguments:
EXAMPLE: <% = minute (# 12: 45: 32 pm #)%>
Result: 45
Month ()
Function: Return date.
Syntax: Month (Date)
Arguments: Date is any valid date expression.
EXAMPLE: <% = month (# 08/04/99 #)%>
RESULT: 8
Monthname ()
Function: Returns a string Identifying the specified month.
SYNTAX: MONTHNAME (Month, [, ABB])
Arguments: Month Is The Numeric Representation for a Given Month; ABB
(optional) IS a boolean value used to display month abbreviation. Truewill Display The Abbreviated Month Name and false (Default) WILL NOT SHOW
The abbreviation.
EXAMPLE: <% = MONTHNAME (Month (# 08/04/99 #))%>
Result: August
Now ()
Function: Returns The Current System Date and Time.
SYNTAX: now ()
Arguments: None
EXAMPLE: <% = no%>
Result: 8/4/99 9:30:16 AM
Replace ()
Function: Returns a string in Which a specified sub-string Has been
Replaced with another substring a specified number of time.
Function: Returns the character (including Changth characters) before the string on the right side of the string.
SYNTAX: Right (String, Length)
Arguments:.
EXAMPLE: <%
strTest = "this is an test!"
Response.write Right (strTest, 3)
%>
Result: ST!
RND ()
Function: Generate a random number.
SYNTAX: RND [(Number)]
Arguments:
EXAMPLE: <%
Randomize ()
Response.write rnd ()
%>
Result: Number of any one between 0 and 1
Round ()
Function: Returns the value of the pointing number to the number.
Syntax: Round (Expression [, nuMright])
Arguments: NUMRIGHT number indicates how many counts in the right side of the decimal point. If omitted, then
The Round function returns an integer.
EXAMPLE: <%
I = 32.45678
Response.write Round (i)
%>
Result: 32rtrim ()
Function: Remove the string on the right side of the string.
SYNTAX: RTRIM (String)
Arguments:
EXAMPLE: <%
strTest = "this is a test !!"
Response.write Rtrim (StRTEST)
%>
Result: this is a test !!
SECOND ()
Function: Return second.
SYNTAX: Second (TIME)
Arguments:.
EXAMPLE: <% = second (# 12: 34: 28 pm #)%>
RESULT: 28
Strreverse ()
Function: a string
Syntax: Strreverse (String)
Arguments:
EXAMPLE: <%
strTest = "this is a test !!"
Response.Write Strreverse (StRTEST)
%>
Result: !! Tset A Si SIHT
Time ()
Function: Returns the system time.
Syntax: Time ()
Arguments:.
Example: <% = Time%>
Result: 9:58:28 AM
Trim ()
Function: Remove the space of the string.
Syntax: Trim (String)
Arguments: string is any valid string expression.
EXAMPLE: <%
strTest = "this is a test !!"
Response.write Trim (StRTEST)
%>
Result: this is a test !!
Ubound ()
Function: Returns the maximum subscript of the specified array dimension.
Syntax: ubound (arrayname [, dimension])
Arguments:; Dimension (optional) Specifies which one-dimensional upper boundary integer. 1 means the first
Dimension, 2 indicates the second dimension, and so on. If the Dimension parameter is omitted, the default value is 1.
EXAMPLE: <%
i = array ("Monday", "Tuesday", "Wednesday")
Response.write ubound (i)
%>
RESULT: 2
Ucase ()
Function: Returns the uppercase of the string.
Syntax: ucase (String)
Arguments:
EXAMPLE: <%
strTest = "this is a test !!"
Response.write ucase (StRTEST)
%>
Result: this is a test !!
VARTYPE ()
Function: Returns the value indicating the variable amount type
Syntax: VARTYPE (VarName)
Arguments:
EXAMPLE: <%
i = 3
Response.write Vartype (i)
%>
Result: 2 (Digital) See "ASP constant" for details
Weekday ()
Function: Returns on the first few days of the week.
Syntax: Weekday (Date [, Firstdayofwek])
Arguments:.
EXAMPLE: <%
D = # 8/4/99 #
Response.write weekday (d)
%>
RESULT: 4 (Wednesday)
WeekdayName ()
Function: Returns the name of the first day.
Syntax: weekdayName (Weekday [, ABB] [, Firstdayofweek]) arguments: ABB is optional. Boolean value indicates whether abbreviation represents the name of the day of the week. If the province
Slightly, the default is false, that is, the name of the day does not abrink the name of the day. Firstdayofweek indicates the first day of the week.