ASP Common Function Table (VBS)

xiaoxiao2021-03-06  104

Array () Function Returns an array expression array (list) Allow data type: characters, numbers can be instance: Return Result: Create a array of arrays containing 7 elements MyArraymyArray ("Sunday", "Monday", .... .. "SATURDAY")

CINT () functions convert an expression into a digital type expression CINT (Expression) Allow data type: Any valid character can be (not more than 32767) instance: Return Result: 236 Transformation Character "234" is a number "234", Returns 0 values ​​if the string is empty

The CreateObject () function establishes and returns an instance of a registered ActiveX component. Expression CreateObject (ObjName) Allow data types: ObjName is a name for any valid, registered ActiveX component. Instance:

CSTR () function transforms an expression as a string. Expression CSTR (Expression) Allows data type: Expression is any valid expression. Example: Return Result: Transformation Number "5" is the character "5".

Date () function returns the current system date. Expression Date () Allow data type: None. Instance: Return Results: 9/9/00

The dateAdd () function returns a changed date. Expression Dateadd (TimeInterval, Number, Date) Allow Data Type: TimeInterval is The Time Interval To Add; Number IS Amount of Time Interval To Add; And Date Is The Starting Date. Instance:

Return Results: 9/9/003: 34: 45 PM "M" = "MONTH"; "D" = "day"; if currentdate is in time format the, "h" = "hour"; "s" = " "

The dateDiff () function returns the difference between the two dates. Expression Datediff (TimeInterval, Date1, Date2 [, Firstday FirstDayofweek [, Firstweekofyear]]) Allow data type: TimeInterval indicates the type of time separation, such as "M" means "month". Example: Return Result: There are still 150 days from 9/9/00 to 2000.

The day () function returns for a month. Expression DAY (date) Allows the data type: Date is any valid date. Example: Return Result: 9

FormatCurrency () function returns an expression, this expression is formatted as a currency-value expression formatcurrency (Expression [, Digit [, LeadingDigit [, Paren [, GroupDigit]]]) Allow data type: DIGIT indicates the right side of the decimal point Number of bits. The default value is -1, indicating the area setting of the computer; the LeadingDigit tri-state constant indicates whether the zero in front of the small numerical point is displayed. Example: Return Result: $ 34.35

The formatdatetime () function returns an expression. This expression is formatted as a date or time expression formatdateTime (Date, [, NamedFormat]) Allow the data type: NamedFormat indicates the value of the date / time format used, if omitted, Use VBGeneralDate. Example: Return Results: Sunday, September 09, 2000

The formatNumber () function returns the expression. This expression has been formatted as a value. Expression FormatNumber (Expression [, Digit [, LeadingDigit [, Paren [, GroupDigit]]]) Allow data type: DIGIT indicates the right side of the decimal point Number of bits. The default is -1, indicating the area setting of the computer. LeadingDigit i indicates the value of the display bits on the right side of the decimal point. The default is -1, indicating the area setting of the computer. PAREN indicates the value of the number of digits on the right side of the decimal point. The default is -1, indicating the area setting of the computer. GroupDigit i indicates the value of the number of digits on the right side of the decimal point. The default is -1, indicating the area setting of the computer. . Example: Return Result: 45.325Formatpercent () Function Returns the expression, this expression has been formatted as a percentage of the percentage of the percentage (multiplied by 100). (%) Expression Formatpercent (Expression [, Digit [, LeadingDigit [, Paren [, GroupDigit]]]) Allow data types: Ibid. Instance: Return Result: 45.267%

The Hour () function returns the number of hours at 24. Expressions HORE (TIME) Allow Data Type: Instance: Return Results: 16 (Hour Hastemted to 24-Hour System)

The INSTR () function returns a character or a string in another string. The first appearance in another string. Expression INSTR ([START,] STRTOBESEARCHED, STRSEARCHFOR [, Compare]) Allow data types: start is the starting value of the search, STRTOBESEARCHED Accepts Strings StrsearchFor To search for characters. Compare comparison mode (detailed view ASP constant) instance: Return Result: 9

The INSTRREV () function is the same, just from the last search of the character string, the expression INSTRREV ([Start,] Strtobesearched, StrsearchFor [, Compare]) allows the data type: Ibid. Instance: Return Result: 13

The int () function returns a numeric type and does not go round. Expression INT (NUMBER) Allow Data Type: Instance: Return Result: 32

Isarray () function determines whether an object is an array, returns a Boolean value. Expression isarray (name) Instance: Return Result: False

Isdate () function determines whether an object is a date, return to Boolean Expression Isdate (Expression) Instance: Return Result: True

ISEMPTY () function determines whether an object is initialized, return to Boolean value. Expression ISEMPTY (Expression) Instance: Return Result: True

The isnull () function determines whether an object is empty, return to Boolean value. Expression ISNULL (Expression) Instance: Return Result: False

The isNumeric () function determines whether an object is a number, returns a Boolean value. Expression ISNUMERIC (EXPRESSION) instance: Return Result: TRUE Even if the number adds quotation marks, ASP still thinks it is a number.

The isobject () function determines whether an object is an object, returns a Boolean value. Expression ISOBJECT (Expression) Instance: Return Result: True

LBound () function returns the minimum available subscript of the specified number of sets. Expressions LBound (ArrayName [, Dimension]) instance: Return Result: 0

LCASE () function Returns the lowercase form of the string LCASE (String) instance: Return Result: This is a test! Left () function Returns the previous character (including Changth characters) in the left side of the string (including Changth characters). Expression LEFT (STRING, Length) Example: Return Results: THI

The LEN () function returns the length of the string. Expression LEN (String | VarName) Instance: Return Result: 15

The LTRIM () function removes the space left on the left side of the string. Expression Ltrim (String) Instance: Return Result: this is a test!

The MID () function returns a specific length string (starting from START, length length). Expression MID (String, Start [, Length]) Instance: Return Result: Today

Minute () function returns time minutes. Expression Minute (Time) Instance: Return Results: 45

Month () function returns the date. Expressions Month (Date) instance: Return Result: 8

MonthName () function returns the specified month expression MONTHNAME (Month, ABB]) instance: Return Result: AUGUST

NOW () function return system time expressions now () instance: return Results: 9/9/00 9:30:16 AM

Right () function Returns the character (including Changth character) before the first side of the string (including Changth characters). Expressions Right (String, Length) instance: Return Result: ST!

The RND () function generates a random number. Expression RND [(Number)] Instance: Return Result: Number of Number of 0 to 1

The Round () function returns the value of the number of points to the number of points. Expression Round (Expression [, Numright]) instance: Return Results: 32

The RTRIM () function removes the string on the right side of the string. Expressions RTRIM (String) Instance: Return Result: this is a test !!

The split () function segments a string and returns a split result expression split (s [D]) instance: Return Result: A b C

Second () function returns second. Expression SECOND (TIME) Instance: Return Result: 28

Strreverse () function refrigerate a string expression Strreverse (String) instance: Return Result: !! Tset A Si SIHT

Time () function returns to system time. Expression Time () instance: Return Results: 9:58:28 AM

The Trim () function removes the space left and right. Expressions Trim (String) instance: Return Result: this is a test !!

Ubound () function returns the maximum subscript of the specified array dimension> Expressions Ubound (ArrayName [, Dimension]) instance: Return Result: 2

UCASE () function returns the uppercase of the string. Expressions UCase (String) Allow Data Types: Instance: Return Result: This is a test !!

VARTYPE () function Returns the value of the value of the variable quantum type VARTYPE (VARNAME) instance: Return Result: 2 (Digital) See "ASP constant"

Weekday () function returns the first few days of the week. Expression Weekday (Date [, Firstday Fweek]) Instance: Return Result: 4 (Wednesday)

WeekdayName () function returns the name of the first few days. Expression WeekdayName (Weekday [, ABB [, Firstday Fweek]]) Instance: Return Result: Wednesday

转载请注明原文地址:https://www.9cbs.com/read-126756.html

New Post(0)