ASP type conversion function book page 1/2

Source: Internet
Author: User
Tags natural logarithm

ABS (number)
Returns the absolute value.
Array (Arglist)
Create an array.
ASC (string)
Returns the ANSI code of the first character of the string.
ATN (number)
Returns the arc sine value.
Cbool (expression)
Convert to a boolean data type variable.
Cbyte (expression)
Convert to byte data type variable.
Ccur (expression)
Convert to currency data type variable.
Cdate (expression)
Convert to date data type variable.
Cdbl (expression)
Convert to a double data type variable.
CHR (charcode)
Converts an ANSI code to a corresponding keyboard character.
CINT (expression)
Convert to an integer data type variable.
Clng (expression)
Convert to a long data type variable.
Createobject (servername. typename)
Create an automatic object.
Csng (expression)
Convert to single data type variable.
CSTR (expression)
Convert to a string data type variable.
Date
Based on the system return time.
Dateadd (interval, number, date)
Add a specified interval to the date object. The interval parameter accepts the values shown in the following table.
Set Value
Description
Yyyy
Year
Q
Quarter
M
Month
Y
The day of the year
D
Days
W
Day of the week
WW
The week of the year.
H
Hours
M
Minutes
Seconds

Datediff (interval, date1, date2])
Returns the interval between two dates. For the values of firstdayofweek and firstweekofyear, see the "Date and Time Constant" section below. The interval parameter accepts the values shown in the following table.
Set Value
Description
Yyyy
Year
Q
Quarter
M
Month
Y
The day of the year
D
Days
W
Day of the week
WW
The week of the year.
H
Hours
M
Minutes
Seconds

Datepart (interval, date])
Returns the specified part of the date object. For the values of firstdayofweek and firstweekofyear, refer to the "Date and Time Constant" section below. The interval parameter accepts the values shown in the following table.
Set Value
Description
Yyyy
Year
Q
Quarter
M
Month
Y
The day of the year
D
Days
W
Day of the week
WW
The week of the year.
H
Hours
M
Minutes
Seconds

Dateserial (year, month, day)
Convert to a date data subtype variant value.
Datevalue (date)
Convert to a date data subtype variant value.
Day (date)
Returns the number of days in a month based on the date parameter.
Exp (number)
Returns the power of number in E.
Filter (inputstrings, value])
Create a new array based on the filter conditions. For the Compare value, see the section "compare constant.
Fix (number)
Convert it into an integer (for negative numbers, only do not stop ).
Formatcurrency (expression])
Format it in the form of currency. For the values of includeleadingdigit, useparensfornegativenumbers, and groupdigit, see the section "three-state constants.
Formatdatetime (date)
Format and output the date and time. For the namedformat value, see the "Date Format constant" section.
Formatnumber (expression])
Format the number. For the values of includeleadingdigit, useparensfornegativenumbers, and groupdigit, see the section "three-state constants.
Formatpercent (expression])
Format the percentage. For the values of includeleadingdigit, useparensfornegativenumbers, and groupdigit, see the section "three-state constants.
GetObject ()
Returns the specified dynamic object from the specified file.
Hex (number)
Returns the hexadecimal value of the number.
Hour (time)
Returns the hour based on the value of time.
Inputbox (prompt)
A temporary input box is displayed and user input is returned.
Instr (string1, string2)
Returns the position where string string2 first appears in string string1. For the Compare value, see the "compare constant" section.
Limit Rev (string1, string2])
Returns the position of string2 in string1. For the Compare value, see the "compare constant" section.
INT (number)
Returns an integer (negative values are not included ).
Isarray (varname)
Determines whether the variable is an array.
Isdate (expression)
Determine whether the expression can be converted to the date format.
Isempty (varname)
Check whether the variable has been initialized.
Isnull (expression)
Determine whether expression is null.
Isnumberic (expression)
Determine whether the expression result is a number.
Isobject (expression)
Determine whether expression is an automatic object.
Join (list ,)
Concatenates all the substrings in an array. The delimiter used for the connection is set by the value of delimiterd.
Lbound (arrayname)
Returns the minimum boundary of a dimension in the array. In the current VBScript version, this function always returns 0.
Lcase (string)
Format it in lower case.
Left (string, length)
Returns the left part of the string of the specified length.
Len (string | varname)
Returns the string length or the byte length of the variable varname.
Loadpicture (pitcurename)
Load an image object.
Log (number)
Returns the natural logarithm of the number.
Ltrim (string)
Removes unnecessary spaces on the left of the string.
Mid (strin, start)
Returns the substring of a string of the specified length.
Minute (time)
Return the minute value based on the value of the time parameter.
Month (date)
Returns the number of months.
Monthname (month)
Returns the month in name.
Msgbox (prompt)
A message box is displayed, requiring you to select a button and return a value indicating the user's choice. For the value and return value of the button, see the "message box constant" section.
Now
Returns the current date and time based on the system.
Oct (number)
Returns the octal value of the number.
Replace (expression, find, replacewith])
Replace the specified substring with the specified substring replacewith. For the value of the compare parameter, see "compare constant.
Right (string, length)
Returns the right molecular string of a string of the specified length.
RND ()
Generates a random number.
Round (number)
Rounds the number according to the specified number of decimal digits.
Rtrim (string)
Removes unnecessary spaces on the right of the string.
Scriptengine
Returns the name of the script language used.
Scriptenginebuildversion
Returns the version of the script engine used.
Scriptenginemaorversion
Returns the large version number of the script engine used.
Second (time)
Returns the second of the minute based on the value of time.
SGN (number)
Returns the plus or minus sign of number.
Sin (number)
Returns the sine of number.
Space (number)
Creates a string with a specified number of spaces.
Split (expression])
Splits a string and converts it to an array. For the Compare value, see the section "compare constant.
Sqr (number)
Returns the square root of number.
Strcomp (string1, string2)
String comparison. For the Compare value, see the section "compare constant.
Strreverse (string1)
Returns string1 in reverse order.
String (number, character)
Create a character string with the number character.
Tan (number)
Returns the tangent of the number.
Time
Returns the current time according to the system.
Timeserial (hour, minute, second)
Returns the date variable body.
Timevalue (time)
Returns the date variable body containing the time.
Trim (string)
Removes unnecessary spaces on both sides of a string.
Typename (varname)
Returns the child type name. For the returned values, see the variable type constant section.
Ubound (arrayname)
Returns the upper boundary of a dimension in the array. The default dimension is the first dimension.
Ucase (string)
Format String with uppercase letters.
Vartype (varname)
Returns the value of the Child type. For the returned values, see the variable type constant section.
Weekday (date ,)
Returns the day of the week in number format. For the value of firstdayofweek, see the variable type constant section.
Weekdayname (weekday, abbreviate, firstdayofweek)
Returns the day of the week by name. For the value of firstdayofweek, see the variable type constant section.
Year (date)
Returns the year based on the date parameter.
Waiting for posting on
Examples and explanations
Isnumeric ()

The function determines whether an object is a number. | Boolean value.

Expression isnumeric (expression)

Instance: <%

I = "345"

Response. Write isnumeric (I)

%>

| Result: True

Even if a number is enclosed in quotation marks, ASP still regards it as a number.
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.