Asp. NET common function table

Source: Internet
Author: User
Tags current time datetime expression final integer numeric natural logarithm square root
The asp.net| function Abs (number) obtains the absolute value of the numerical values.
ASC (String) Gets the first character ASCII code of a string expression.
ATN (number) Gets an angle of the tangent value.
CallByName (object, ProcName, Usecalltype,[args ()) executes a method of an object, sets, or returns the properties of an object.
The CBool (expression) conversion expression is a Boolean form.
The CByte (expression) conversion expression is a byte form.
CChar (expression) conversion expressions are character types.
The CDate (expression) conversion expression is a date type.
The CDBL (expression) conversion expression is a double type.
The CDEC (expression) conversion expression is of the decimal form.
The CInt (expression) conversion expression is an integer form.
The CLng (expression) conversion expression is a long form.

The CObj (expression) conversion expression is an object type.
The CShort (expression) conversion expression is a short form.
The CSng (expression) conversion expression is a single form.
The CSTR (expression) conversion expression is a string pattern.
Choose (index, choice-1[, choice-2, ...) [, Choice-n]]) Selects the index value and returns the set parameter.
CHR (CharCode) obtains character content in ASCII code.
Close (filenumberlist) ends the file with open open.
cos (number) Gets the cosine of an angle.
Ctype (expression, typename) converts the form of an expression.
DATEADD (DateInterval, Number, datetime) add and subtract dates or times.
DateDiff (DateInterval, Date1, Date2) calculates the difference between two dates or times.
DatePart (dateinterval, date) returns the year, month, day, or time according to the received date or time parameter.
DateSerial (year, month, day) merges the received parameters into a date-only data-form.
DateValue (DateTime) obtains a date value that conforms to the country-setting style and includes the time.

Day (datetime) is passed back to the date according to the received parameter.
Eof (filenumber) returns True when the end of an open file is reached.
EXP (number) returns the secondary value of E by the received parameter.
FileDateTime (pathname) returns the date and time when the file was established.
FileLen (pathname) returns the length of the file, in bytes.
Filter (Sourcearray, match[, include[, compare]) searches for a specified string in an array of strings that contain the specified string, which is 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 to set whether the search is case-sensitive, as long as the Textcompare constant or 1 can be given.
Fix (number) removes the decimal part of the parameter and returns it.
Format (expression[, style[, firstdayofweek[, FirstWeekOfYear]]) converts dates, times, and numerical data into formats acceptable to each country.
FormatCurrency (Expression[,numdigitsafterdecimal [, IncludeLeadingDigit]]) outputs the value as an amount type.
The Numdigitsafterdecimal parameter is a decimal number, and the IncludeLeadingDigit parameter is the integer number when the whole number is 0.

FormatDateTime (Date[,namedformat]) returns the formatted date or time data.
FormatNumber (Expression[,numdigitsafterdecimal [, IncludeLeadingDigit]]) returns formatting
The numeric data. The Numdigitsafterdecimal parameter is a decimal number, and the IncludeLeadingDigit parameter is the integer number when the whole number is 0.
FormatPercent (Expression[,numdigitsafterdecimal [, IncludeLeadingDigit]]) returns numeric data converted to percent format. The Numdigitsafterdecimal parameter is a decimal number, and the IncludeLeadingDigit parameter is the integer number when the whole number is 0.
GETATTR (filename) Returns the property value of the file or directory.
Hex (number) Converts a numeric argument to a 16-valued value.
Hour (time) returns the hour field, in which the form is an integer.
Iif (expression, Truepart, Falsepart) The program that executes the Truepart field when the return value of the expression is true, and the Falsepart field is executed instead.
INSTR ([Start,]string1, string2) search for string2 parameter set characters appear in the first few characters of the string, start looking for the first few characters, string1 for the string to search for, string2 for the character to search for.
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, or False if it returns true for an array.

IsDate (expression) determines whether the content of the expression is a datetime type, or False if it returns true.
IsDBNull (expression) determines whether the expression content is null, if it returns true, or false.
IsNumeric (expression) determines whether the content of the expression is numeric, or False if it returns true.
Join (sourcearray[, delimiter]) merges a string array into only one string, and the delimiter parameter is set to add a new string between the elements.
Lcase (String) converts a string to lowercase.
Left (string, length) is the character that gets the length parameter set by the left-hand side of the string.
Len (String) Gets the length of the string.
Log (number) gets the natural logarithm of the value.
Ltrim (String) Removes the left blank portion of the string.
Mid (String, start[, length]) takes out the string of characters end-of-file length of the strat parameter in the string, and retrieves all the characters after start if the length parameter is not set.
Minute (time) Gets the part of the content, and the form is integer.
MkDir (path) to create a new directory.
Month (date) Gets the month portion of the date, and the form is integer.

MonthName (month) obtains the full wording of the month according to the number of months received.
Now () gets the current date and time.
The 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) is the character that gets the length parameter set by the beginning of the string.
RmDir (path) removes an empty directory.
Rnd () Gets a decimal number between 0 and 1, and if you want to get a different value each time, add a randomize narration before you use it.
Rtrim (String) removes the right margin of the string.
Second (Time) Gets the second part of the content, and the form is integer.
Sign (number) to obtain the value of the content is positive or negative, positive returns 1, negative return -1,0 return 0.
Sin (number) obtains a sine value of an angle.
Space (number) Gets the blank string set by the number parameter.

Split (expression[, delimiter]) splits the string into a string array by using a conditional string set by the delimiter parameter.
SQRT (number) gets a square root worth.
STR (number) converts numbers to strings and returns them.
StrReverse (expression) Gets the result of the inversion of the string content.
Tan (number) Gets the tangent of an angle.
TimeOfDay () Gets the time that does not currently contain a date.
The Timer () gets the number of seconds from 0:00 to the current time, and the form is double.
TimeSerial (hour, minute, second) merges the received parameters into a date-only data type.
Timavalue (time) obtains a value that conforms to the country-defined style.
Today () Gets the date that does not contain the time.
Trim (string) removes the whitespace at the beginning and end of the string.
TypeName (varname) Gets the type of the variable or object.
Ubound (arrayname[, Dimension]) obtains the final index value of the array, and the dimension parameter is the final index value that specifies the number of dimensions to be obtained.

Ucase (String) converts a string to uppercase.
Val (String) converts a string representing a number to a numeric form, which is merged into a number if the string contains non-numeric content.
The date in the parameter weekday (date) is the day ordinal of one weeks, Sunday is 1, Monday is 2, Tuesday is 3, and so on.
WeekdayName (number) Gets the name of the week according to the received parameter, the parameters that can be received are 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.