The VBScript function of ASP

Source: Internet
Author: User
<span id="Label3"></p><p>' function<br>Abs (number)<br>' Returns the absolute Value.<br>Array (arglist)<br>' Create an Array.<br>ASC (string)<br>' Returns the ANSI code for the first character of a string.<br>Atn (number)<br>' Returns the inverse sine Value.<br>CBool (expression)<br>' Into a Boolean data type Variable.<br>CByte (expression)<br>' into a byte data type Variable.<br>CCur (expression)<br>' Into the Currency data type Variable.<br>CDate (expression)<br>' into a Date data type Variable.<br>CDBL (expression)<br>' into a double data type Variable.<br>CHR (charcode)<br>' Convert the ANSI code to the corresponding keyboard character.<br>CInt (expression)<br>' Into an integer data type Variable.<br>CLng (expression)<br>' into a Long data type Variable.<br>Cos (expression)<br>' Returns the cosine value of a radian number.<br>CreateObject (servername.typename)<br>' Create an automatic object.<br>CSng (expression)<br>' into a single data type Variable.<br>CStr (expression)<br>' into a string data type Variable.<br>Date ()<br>' Returns the time based on the system Used.<br>DATEADD ("interval", Number,date)<br>' Adds a specified time interval to a date object. Where the parameter interval accepts the values shown in the following table.<br>' Set Value description<br>' YYYY year<br>' Q Quarter<br>' M month<br>' Y the first day of the year<br>' D Day<br>' W Week<br>' WW The first few weeks of the year<br>' H hours<br>' N minutes<br>' s seconds<br>DateDiff ("interval", date1,date2[,firstdayofweek[,firstweekofyear]])<br>' Returns the interval between two dates, refer to the "date and time constants" section below for values of FirstDayOfWeek and firstweekofyear. The interval parameter accepts the values shown in the following table.<br>DatePart ("interval", date[,firstdayofweek[,firstweekofyear]])<br>' Returns the specified part of the date Object. For FirstDayOfWeek and FirstWeekOfYear values, refer to the "date and time constants" section below. The interval parameter accepts the values shown in the following table.<br>DateSerial (year,month,day)<br>' Convert to a Date data subtype variant Value.<br>DateValue (date)<br>' Convert to a Date data subtype variant Value.<br>Day (date)<br>' Returns the numbers of the day in one months according to the date of the Parameter.<br>EXP (number)<br>' Returns the value of the number of E.<br>Filter (inputstrings,value[,include[,compare])<br>' Creates a new array based on the filter CRITERIA. For the value of compare, see the "comparing constants" section Later.<br>Fix (number)<br>' is converted to an integer (for negative numbers, only into the non-loft).<br>FormatCurrency (expression[,numdigitsafterdecimal [, includeleadingdigit[,useparensfornegativenumbers [, GroupDigit ]]]])<br>' Formatted into currency form. See the "three-state constants" section later in the Includeleadingdigit,useparensfornegativenumbers and Groupdigit Values.<br>FormatDateTime (date[,namedformat])<br>' Format the output for the date and Time. See the "date Format constants" section later for the value of Namedformat.<br>FormatNumber (expression[,numdigitsafterdecimal [, includeleadingdigit[,useparensfornegativenumbers [, GroupDigit]] ]])<br>' Format the Numbers. See the "three-state constants" section later in the Includeleadingdigit,useparensfornegativenumbers and Groupdigit Values.<br>FormatPercent (expression[,numdigitsafterdecimal [, includeleadingdigit[,useparensfornegativenumbers [, GroupDigit] ]]])<br>' Format the Percentages. See the "three-state constants" section later in the Includeleadingdigit,useparensfornegativenumbers and Groupdigit Values.<br>GetObject ([pathname][,class])<br>' Returns the specified dynamic object from the specified file.<br>Hex (number)<br>' Returns the hexadecimal value of number.<br>Hour (time)<br>' Returns the hour based on the value of the parameter Time.<br>InputBox (prompt[,title][,default][,xpos][,ypos][,helpfile,context])<br>' Displays a temporary input box and returns the User's Input.<br>InStr ([start,]string1,string2[,compare])<br>' Returns the position of the first occurrence of the string string2 in the string string1. See the "comparison constants" section later for the value of Compare.<br>InStrRev (string1,string2 [start [, compare]])<br>' Returns the position of the string string2 in the last occurrence of the string string1. See the "comparison constants" section later for the value of Compare.<br>Int (number)<br>' Returns an integer (the negative number is only placed).<br>IsArray (varname)<br>' Determines whether the variable is an array.<br>IsDate (expression)<br>' Determines whether an expression can be converted to a date format.<br>IsEmpty (varname)<br>' Determines if the variable has been initialized.<br>IsNull (expression)<br>' Determines whether expression expressions are Empty.<br>IsNumeric (expression)<br>' Determines whether the result of expression expressions is a number.<br>IsObject (expression)<br>' Determines whether expression expressions is an automatic object.<br>Join (list,[,delimiter])<br>' Concatenate all substrings in an array, and the delimiter used by the connection is set by the value of the Delimiterd.<br>LBound (arrayname[,dimension])<br>' Returns the lowest bounds of a dimension of an array. In the current VBScript version, the function always returns a value of 0.<br>Lcase (string)<br>' Formatted with lowercase characters.<br>Left (string,length)<br>' Returns the left portion of a string of the specified Length.<br>Len (string|varname)<br>' Returns the length of the string or the byte length of the variable Varname.<br>LoadPicture (pitcurename)<br>' Loads a picture object.<br>Log (number)<br>' Returns the natural pair of Numbers.<br>Ltrim (string)<br>' Remove the extra space to the left of string strings.<br>Mid (strin,start[,length])<br>' Returns a substring of string of the specified Length.<br>Minute (time)<br>' Returns the value of the minute based on the value of the parameter Time.<br>Month (date)<br>' Returns the month represented by a number.<br>MonthName (month[,abbreviate])<br>' Returns the month represented by the Name.<br>MsgBox (prompt[,buttons][,title][helpfile,context])<br>' Displays a message box that asks the user to select a button that returns a value that indicates the User's choice. For the value and return value of the button, see the "message box constants" section Later.<br>Now ()<br>' According to the system, returns the current date and Time.<br>OCT (number)<br>' Returns the octal value of Number.<br>Replace (expression,find,replacewith[,start[,count[,compare]])<br>' Replaces the specified substring with the specified substring replacewith the number of times specified by find. For the value of the parameter compare, see the "comparison constants" section Later.<br>Right (string,length)<br>' Returns a string of the right part of the specified length of strings.<br>Rnd ([number])<br>' Generates a random number.<br>Round (number[,numdecimalplaces])<br>' Rounds the number to the specified decimal digit.<br>RTrim (string)<br>' Remove the extra spaces to the right of string strings.<br>ScriptEngine<br>' Returns the name of the scripting language Used.<br>ScriptEngineBuildVersion<br>' Returns the version of the scripting engine Used.<br>ScriptEngineMajorVersion<br>' Returns the large version number of the scripting engine Used.<br>ScriptEngineMinorVersion<br>' Returns the minor version number of the scripting engine Used.<br>Second (time)<br>' Returns the second of the minute according to the value of the time of the Parameter.<br>SGN (number)<br>' Returns the positive and negative number of the Number.<br>Sin (number)<br>' Returns the sinusoidal value of Number.<br>Space (number)<br>' Creates a string with a specified number of Spaces.<br>Split (expression[,delimiter[,count[,compare]])<br>' Split a string and convert the Array. See the "comparison constants" section later for the value of Compare.<br>SQR (number)<br>' Returns the square root value of number.<br>StrComp (string1,string2[,compare])<br>' String Comparison. See the "comparison constants" section later for the value of Compare.<br>StrReverse (string1)<br>' Reverse the string string1.<br>String (number,character)<br>' Create a string with number characters Character.<br>Tan (number)<br>' Returns the tangent of number Numbers.<br>Time<br>' Returns the current time according to the System.<br>TimeSerial (hour,minute,second)<br>' Returns the body of the date Variable.<br>TimeValue (time)<br>' Returns the body of the date variable containing the Time.<br>Trim (string)<br>' Remove the extra space on both sides of the String.<br>TypeName (varname)<br>' Returns the name of the Subtype. For the return value, see the "variable type constants" section Later.<br>UBound (arrayname[,dimension])<br>' Returns the upper boundary of a dimension of an array. The default dimension is the first Dimension.<br>Ucase (string)<br>' Format string in Uppercase.<br>VarType (varname)<br>' Returns the value of the Subtype. For the return value, see the "variable type constants" section Later.<br>Weekday (date,[firstdayofweek])<br>' Return the day of the week in numerical form. For the value of the parameter firstdayofweek, see the "variable type constants" section Later.<br>WeekdayName (weekday,abbreviate,firstdayofweek)<br>' Return the day of the week in the name Form. For the value of the parameter firstdayofweek, see the "variable type constants" section Later.<br>Year (date)<br>' Returns the year based on the date of the Parameter.</p><p><p>The VBScript function of ASP</p></p></span>

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.