Summary of common functions of ASP

Source: Internet
Author: User
Tags natural logarithm

Abs (number)Gets the absolute value of the number.
ASC (String)Gets the ASCII code of the first character of the string expression.
Atn (number)Gets the inverse tangent value of an angle.
CallByName (object, ProcName, Usecalltype,[args ()])Executes the method of an object, sets or returns the properties of the object.
cbool (expression)The conversion expression is a Boolean form.
cbyte (expression)The conversion expression is of type byte.
CChar (expression)The conversion expression is a character type.
CDate (expression)The conversion expression is a date type.
CDbl (expression)The conversion expression is a double form.
CDec (expression)The conversion expression is of type Decimal.
CInt (expression)The conversion expression is an integer pattern.
CLng (expression)The conversion expression is a long form.
cobj (expression)The conversion expression is an object type.
CShort (expression)The conversion expression is a short form.
CSng (expression)The conversion expression is a single form.
CStr (expression)The conversion expression is a string pattern.
Choose (Index, choice-1[, choice-2, ...) [, Choice-n]])Selects and returns the parameters that are set by the index value.
Chr (charcode)Obtains the character content in ASCII code.
Close (filenumberlist)End the file opened with open.
Cos (number)Gets the cosine of an angle.
Ctype (expression, typename)The type of the transformation expression.
DateAdd (dateinterval, Number, datetime)Increase or decrease the date or time.
DateDiff (DateInterval, Date1, Date2)Calculates the difference between two dates or times.
DatePart (dateinterval, date)Returns the year, month, day, or time, depending on the date or time parameter received.
DateSerial (year, month, day)Merges the received parameters into a date-only data type.
DateValue (DateTime)Gets the date value that conforms to the country setting style and contains the time.
Day (datetime)The date parameter is returned to the day according to the receipt.
Eof (filenumber)Returns True when the end of an open file is reached.
Exp (number)Returns the secondary value of E to the received parameter.
filedatetime (pathname)Returns the date and time when the file was established.
FileLen (pathname)Returns the length of the file, in units of byte.
Filter (Sourcearray, match[, include[, compare])Searches for the specified string in the string array, where the array elements contain the specified string, and they are combined into a new string array and returned. If you want to return an array element that does not contain the specified string, the include parameter is set to False. The Compare parameter is a case-sensitive setting when searching, as long as the Textcompare constant or 1 is given.
Fix (number)Remove the decimal part of the parameter and pass it back.
Format (expression[, style[, firstdayofweek[, FirstWeekOfYear]])Convert date, time and value data to a format acceptable to each country.
FormatCurrency (Expression[,numdigitsafterdecimal [, IncludeLeadingDigit]])Outputs the value to the amount type. The Numdigitsafterdecimal parameter is a small number, and the IncludeLeadingDigit parameter is the number of integers that are rounded when the integer is 0.
FormatDateTime (Date[,namedformat])Returns the formatted date or time data.
FormatNumber (Expression[,numdigitsafterdecimal [, IncludeLeadingDigit]])Returns the formatted numeric data. The Numdigitsafterdecimal parameter is a small number, and the IncludeLeadingDigit parameter is the number of integers that are rounded when the integer is 0.
FormatPercent (Expression[,numdigitsafterdecimal [, IncludeLeadingDigit]])Returns the numeric data converted to percent format. The Numdigitsafterdecimal parameter is a small number, and the IncludeLeadingDigit parameter is the number of integers that are rounded when the integer is 0.
GetAttr (filename)Returns the property value of the file or directory.
Hex (number)Converts a numeric parameter to a 16 binary value.
Hour (Time)Returns the hour field of time, which is an integer.
Iif (expression, Truepart, Falsepart)Executes the program of the Truepart field when the return value of the expression is true, and vice versa executes the Falsepart field.
InStr ([Start,]string1, string2)The search string2 parameter sets the character that appears in the character string, start is searched by the first few characters, string1 is the string to be searched, string2 is the character to be searched.
Int (number)Returns the maximum integer value that is less than or equal to the receive parameter.
IsArray (varname)Determines whether a variable is an array type, and if the array returns True, the inverse is false.
IsDate (expression)Determines whether the content of the expression is a datetime type, or False if it returns true.
IsDbNull (expression)Determines whether the content of the expression is null, if True is returned, and vice versa is false.
isnumeric (expression)Determines whether the expression content is a numeric type, if it returns true, and vice versa is false.
Join (sourcearray[, delimiter])Merges a string array into only one string, and the delimiter parameter is set to add a new string between each element.
Lcase (String)Converts a string to lowercase.
Left (string, length)A character that is set to the length parameter by the left of the string.
Len (String)Gets the length of the string.
Log (number)Gets the natural logarithm of the value.
Ltrim (String)Remove the left blank part of the string.
Mid (String, start[, length])Remove the string in the string strat parameter set specifier length length, if the length parameter is not set, then retrieve all the characters after start.
Minute (Time)Gets the partial part of the time content, the type is integer.
MkDir (path)Create a new directory.
Month (date)The month part of the acquisition date, the form is integer.
MonthName (month)Gets the full spelling of the month, depending on the month value received.
Now ()Get the current date and time.
Oct (number)Converts a numeric parameter to a 8 binary value.
replace (expression, find, replace)Converts the string specified by the find parameter in the string to the string specified by the Replace parameter.
Right (string,length)The length parameter is set to the right of the string to begin with.
RmDir (path)Remove an empty directory.
Rnd ()Get a decimal between 0 and 1, if you want to get a different value each time, you need to add randomize narration before use.
Rtrim (String)Remove the blank right part of the string.
Second (Time)The second part of the time content is obtained, and the form is integer.
Sign (number)The obtained numeric content is positive or negative, the positive number returns 1, and the negative returns -1,0 returns 0.
Sin (number)Gets the sinusoidal value of an angle.
Space (number)Gets the blank string that is set by the number parameter.
Split (expression[, delimiter])Splits a string into an array of strings using the condition string set by the delimiter parameter.
Sqrt (number)Get a number worth square root.
Str (number)Converts a number to a string and then returns it.
strreverse (expression)Gets the result after the string content is reversed.
Tan (number)Gets the tangent of an angle.
TimeOfDay ()Obtain a time that does not currently contain a date.
Timer ()Gets the number of seconds from 0:00 to the current time, and the type is double.
timeserial (hour, minute, second)Merges the received parameters into a data that has only a time date type.
Timavalue (Time)Gets the time value that conforms to the country setting style.
today ()Get a date that does not contain time today.
Trim (String)Remove whitespace at the beginning and end of the string.
TypeName (varname)Gets the type of the variable or object.
Ubound (arrayname[, dimension])Gets the final index value of the array, and the dimension parameter is the final index value that specifies the dimension to be obtained.
Ucase (String)Converts a string to uppercase.
Val (String)Converts a string representing a number to a numeric form, and if the string contains non-numeric content, it is removed and merged into a number.
Weekday (date)The date in the parameter is one days of the week, Sunday is 1, Monday is 2, Tuesday is 3 and so on.
weekdayname (number)The name of the week is obtained according to the parameters received, the parameters can be received from 1 to 7, Sunday is 1, Monday is 2, Tuesday is 3 and so on.

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.