/*-------------------------------------------------------------------------------------/
*-->Author: Paramecium
*-->Time: 2007-4.28---2007-4.30 (It turned out to be a manual written by myself, and I am now posting it here)
*-->Contact:[email protected]
*-->Document functions:
1. Review ASP, deepened my understanding of ASP structure and ASP experience
2. It can be used as ASP reference. It is written by yourself, making it more convenient to refer to it.
This is the fifth part: Common functions for VBScript in ASP
/*-----------------------------------------------------------------------------------------------------------------------------
*-->Judge class functions:
Isarray(): determines whether it is an array
Isdate(): determines whether it is time-type data. Time-type data can be as follows:
"October19,1962" or #2006/11/3# or #2006-11-3#
Isempty(): determines whether a variable has been initialized, that is, whether the value is empty
Isnull(): determine whether the variable has nothing
Isnumeric(): determine whether it is a number
Isobject(): determines whether it is an object
The return value is boolean value (true or false)
*-->Common conversion class functions:
Abs(): Abs() function
Asc(): Returns the ANSI character code corresponding to the first letter of the string
The Ascb function is used with a string containing byte data. Ascb is not a character generation that returns the first character
code, but return the first byte. Ascw is provided for 32-bit platforms using Unicode characters. It returns
Unicode (wide type) character code, so code conversion from ANSI to Unicode can be avoided.
Chr(): Returns the character corresponding to the specified ANSI character code
The Chrb function is used with byte data contained in a string. Chrb does not return one or two bytes
characters, and always return a single byte character. Chrw is a 32-bit platform for using Unicode characters
Provided. Its parameter is a Unicode (wide character) character code, so it can avoid converting ANSI
Turns into Unicode characters.
Int(), Cint(), Fix() and Clng(): Return an integer
Difference: int() can accept long integer data and always remove the data after the decimal point.
Cint() can only accept short integer data, and uses rounding to process decimals
Clng() can accept long integer data, and also process decimals by rounding them.
In the case of positive numbers, fix() and int() are the same, the difference between the two is negative numbers:
The Int function returns the first negative integer less than or equal to number
The Fix function returns the first negative integer greater than or equal to the number parameter
Cstr(): Return a string
*-->Common time functions: