2.p=Log(X): Find the natural logarithm of x. 。
3.Y=Sgn(X): symbolic function.
Description: x & gt0y =1; Y = 0; when X=0; X< is at 0, Y=- 1.
Example: Response.write sgn(5)
Output: 1
4.Sin(x), Cos(x), Tan(x), Atn(x): trigonometric functions.
5.Ctype(x): type conversion:
P=Cbool(x)
Convert x to a boolean value.
P=Cbyte(X)
byte
P=Ccur(x)
a sum of money
P=Cdatel(x)
date
P=Cintl(x)
Double precision
P=CDbl(x)
integer
P=Clng(x)
Long integer
P=Csng(X)
single precision
P=Cstr(x)
character string
Example: response.writecdbl (#111900 #)
Results: 2
Note: True:-1 False: 0
Date: # 12/30/ 1899# is 0, and will be increased every 1 day thereafter. Every 1 day, the value decreases by 1.
6.Int (x): take
7.Fix(X): Take the integer part of x and directly remove the decimal part.
Response. Write Int(-54.6)
The result is: -55. choose
Response. Write Int(54.6)
Result: 54.
Response. Write Repair (54.6)
Result: 54
Response. Write Repair (-54.6)
Result: -54
8.Asc(X): Returns the character code of the first character of a string.
9.Chr(X): Returns the character of the character code X. 。
P=Asc("A") p=65
P=Chr(65) p=A
10.Filter: Find a specific string in a string array.
P=Filter(X,S[,Include[,Compare]])
Parameter x is an array of strings, and parameter s is the string to be searched. After calling, all the elements in the x array containing the string s will be combined into another string array, and then returned. Filter can also pick out array elements that do not contain S strings after searching. At this point, parameter three Include should be set to False. If you want to search case-insensitive, Compare should be set to vbTextCompare.
Example:
ReDimX(2)
X(0)= " KJDFS ":X( 1)= " WANDFKJ ":X(2)= " fsda "
V = filter (x, "kj", false)
Results: v (0) = "fsda "
10.Instr(x, y) starts from the first character of x to find the position of y.
1 1.Instr(n, x, y) calculates the position of y from the nth character of x 。
If y is found in x, the return value is the position where the first character of y appears.
If N> string length, or X is an empty string, or Y can't be found in X, all return 0.
If y is an empty string, n is returned.
InStrRev looks back for strings.
P=InStrRev(c,s[,n[,compare]])
Finds forward from the back of the string X, and if found, returns the position of the S string in the character.
N which character to start the search, set compare, can be case-insensitive.
12.
Join(x[, d]) synthesizes an array of strings into a string.
Parameter x is an array of strings. After calling JOIN, all string elements of X will be strung together to form a string, and then returned.
The d parameter is used to specify the delimiter.
X = array ("da", "fdsa", "FDA")
P=Join(X,",")
P="da、fdsa、dsa "
12.Len(X): Calculate the length of the string X. 。
Empty characters have a length of 0, and spaces are counted as one character. Although Chinese accounts for 2 bytes, it also counts as a character.
13, Left(X, n): returns n characters to the left of the string X.
If N=0, an empty string is returned; If n >;; =Len(X), the entire string is returned.
14, Mid(X, n): starting from the nth character of x, read all the characters after it.
Mid(X, n, m): starting from the nth character of x, read m characters.
If n & gtLen(X) returns an empty string, if there are fewer than m characters after the nth character, all the characters after it are returned.
14.ltrim (x), rtrim (x), trim (x): delete empty characters.
Lslim (x) deletes all characters to the left of x.
Trim(x) deletes all characters on the left and right sides of x.
Rtrim(x) deletes all characters to the right of x.
Spaces between characters will not be deleted.
X=Ltrim ("this is good")
Result: x = "This is good"
X=Trim ("This is good")
Result: x = "This is good"
16.Right(X, n): returns n characters on the right side of the string X.
P = substitution (x, s, r)
Replace the string s in the string x with the string r, and then return.
X="asp is fine "
P = substitution (x, good, good)
P="asp is fine "
Space(n): Returns a string consisting of n spaces.
P=Space(n, x): Returns a string consisting of the first characters of n x's.
X can be a string or a character code.
17, Split: Invade a string into a string array.
P=Split(S[,d])
With the d parameter as the separator, the string S is violated into multiple strings to form a string array. Then return, if the d parameter is omitted, the space character is used as the separator.
P=Split("a,b,c ",",")
p(0)=“a”,p( 1)=“b”,p(2)=“c”
18, strverse: reverse the string.
P inverse (x)
Returns the inverted string of the x parameter.
P=StrReverse("ABC ")
P="CBA "
19.Ucase(X), Lcase(X): Convert the case of English letters.
P=Lcase(X) converts uppercase letters of the string x into lowercase letters.
P=Ucase(X) converts lowercase letters of the string x into uppercase letters.
Only English letters will be affected.