Function
Right ()
FUNCTION: Returns the previous character (with length characters) of the length character to the right of the string.
syntax:right (string, length)
ARGUMENTS:.
EXAMPLE: <%
strtest = "This is a test!"
response.write Right (strtest, 3)
%>
result:st!
rnd ()
FUNCTION: Produces a random number.
Syntax:rnd [(number)]
ARGUMENTS:
EXAMPLE: <%
ran Domize ()
response.write RND ()
%>
Result: Any number between 0 and 1
& nbsp
round ()
FUNCTION: Returns a value that is rounded by a specified number of digits.
syntax:round (expression [, numright])
arguments:numright number indicates how many digits to the right of the decimal point are rounded. If omitted, the
round function returns an integer.
EXAMPLE: <%
i = 32.45678
response.write Round (i)
&nbsP;%>
result:32
rtrim ()
FUNCTION: Removes the string to the right of the string. br> Syntax:rtrim (String)
ARGUMENTS:
EXAMPLE: <%
Strtest = "This is a test!!"
response.write RTrim (strtest)
%>
Result:this is a test!!
second ()
FUNCTION: Returns a second.
Syntax:second (time)
ARGUMENTS:.
EXAMPLE: <%=second (#12:34:28 pm#)%>
result:28
strreverse ()
FUNCTION: Reverse-Line 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 around 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 available subscript for the specified array dimension.
Syntax:ubound (Arrayname [, dimension])
ARGUMENTS:; Dimension (optional) specifies the integer that returns the upper bound of the dimension. 1 means the first
Dimension, 2 represents the second dimension, and so on. If the dimension argument is omitted, the default value is 1.
EXAMPLE: <%
i = Array ("Monday", "Tuesday", "Wednesday")
Response.Write UBound (i)
%>
Result:2
UCase ()
FUNCTION: Returns the uppercase form of a string.
syntax:ucase (String)
ARGUMENTS:
EXAMPLE: <%
strtest = "This is a test!!"
Response.Write UCase (strtest)
%>
Result:this is A test!!
VarType ()
FUNCTION: Returns a value indicating the variable quantum type
Syntax:vartype (VarName)
ARGUMENTS:
EXAMPLE: <%
i = 3
Response.Write VarType (i)
%>
result:2 (number) See "ASP constant"
Weekday ()
FUNCTION: Returns the day ordinal of a week.
syntax:weekday (date [, FirstDayOfWeek])
ARGUMENTS:.
EXAMPLE: <%
d = #8/4/99#
Response.Write Weekday (d)
%>
result:4 (Wednesday)
WeekdayName ()
FUNCTION: Returns the name of the day ordinal of a week.
Syntax:weekdayname (Weekday [, ABB] [, FirstDayOfWeek]])
Arguments:abb Optional. Boolean value that indicates whether the name of the day of the week is abbreviated. If the province
slightly, the default value is False, that is, the name of the day of the week is not abbreviated. FirstDayOfWeek specified the first day of the week
Numerical
EXAMPLE: <%
d = #8/4/99#
Response.Write WeekdayName (Weekday (d))
%>
Result:wednesday
year ()
FUNCTION: Returns the current year.
syntax:year (date)
ARGUMENTS:
EXAMPLE: <%=year (#8/4/99#)%>
result:1999