ASP.NET common functions
ABS (Number) Absolute value of the value. ASC (String) gets the first character ASCII code for string expressions. ATN (NUMBER) acquisition an angle of an angle. CallbyName (Object, Procname, UsecallType, [args ()]) performs an object's method, setting, or back to the object of the object. CBOOL (Expression) The conversion expression is a Boolean type. CBYTE (Expression) conversion expression is a BYTE type. Cchar (Expression) conversion expression is a character type. CDATE (Expression) conversion expression is a DATE type. The CDBL (Expression) conversion expression is a Double type. The CDEC (Expression) conversion expression is a Decimal type. CINT (Expression) Conversion Expression is an Integer type. ClNG (Expression) Conversion Expression is a long type.
COBJ (Expression) Conversion Expression is Object. CShort (Expression) conversion expression is a short type. CSNG (Expression) conversion expression is a Single type. CSTR (Expression) conversion expression is a string type. Choose (index, choice-1 [, choice-2, ... [, choice-n]]) is selected and transmitted back to the set parameters in an index value. CHR (Charcode) gets character content in ASCII code. Close (filenumberlist) ends the file using Open. COS (Number) gets a cosine value of an angle. CType (Expression, TypeName) Convert expression of expression. Dateadd (DateInterval, Number, DateTime) is subjected to date or time. DateDiff (DateInterVal, Date1, Date2) calculates the difference between two dates or time. DatePart (DateInterVal, Date) is followed by the date or time parameters of the reception year, month, day or time. DateSerial (Year, Month, Day) combines the received parameters into a DATE-based data. DateValue (datetime) obtains the date value of the country setting style and contains time.
DAY (datetime) passed back to the day according to the date parameter received. EOF (Filenumber) is sent back to True when arriving at the end of an open file. Exp (Number) is transmitted back to the secondary value of E of EX. FileDateTime (Pathname) Remove the date of the file, time. Filelen (Pathname) The length of the file is transmitted, and the unit is Byte. Filter (SourceRay, Match [, Include [, compare]]) Search for specified strings in the array of strings, all array elements contain specified strings, combine them into new strings arbitraries and back. If you want to pass the array elements that do not contain the specified string, the include parameter is set to false. The Compare parameter is whether it is case sensitive when setting the search, as long as it will be given to the TextCompare constant or 1. FIX (NUMBER) removes the fractional portion of the parameter and is back. Format (Expression [, Style [, FirstDayofweek [, Firstweekofyear]]) Transforms the date, time, and numerical data to the format that you can accept each country. FormatCurrency (Expression [, NumdigitsAfterDecimal [, IncludeEdingDigit]]) outputs the numerical value to the amount. The NumdigitsAfterDecimal parameter is the number of small numbers, and the includeLeadingDigit parameter is added to the integer when the integer is 0.
FormatorTime (Date [, namedFormat]) is sent back to the formatted date or time data. FormatNumber (Expression [, NumdigitsAfterDecimal [, IncludeEdingDigit]] is sent back to formatted numerical data. The NumdigitsAfterDecimal parameter is the number of small numbers, and the includeLeadingDigit parameter is added to the integer when the integer is 0. Formatpercent (Expression [, NumdigitsAfterDecimal [, IncludeEdingDigit]] is transmitted into value data in the percentage format. The NumdigitsAfterDecimal parameter is the number of small numbers, and the includeLeadingDigit parameter is added to the integer when the integer is 0. GetAttr (filename) Removes the properties value of the file or directory. HEX (Number) converts numeric parameters to 16 enumeration values. Hour (TIME) The hour field of the time is Integer. IIF (Expression, TruePart, Falsepart) Performs the prograde of the TRUEPART field when the expression value of the expression is TRUE, and then execute the falsepart field. INSTR ([Start,] string1, string2) Searching the string2 parameter setting characters appear in the first few characters of the string, start begins to find by the first character, String1 is string for searching, String2 wants to search character. INT (NUMBER) is transmitted back to the maximum integer value of the received parameter. Isarray (varName) determines whether a variable is an array state, if an array is returned to True, and it is false. Isdate (Expression) Judging whether the expression content is a DateTime type. If it comes back to True, it is false. Isdbnull (Expression) Judging whether the expression content is null, if it comes back to True, it is false. ISNUMERIC (EXPRESSION) determines if the expression content is a numerical state, and if it comes back to True, it is false. Join (SourceRay [, Delimiter]) combines the character string and unique strings, and the DELIMITER parameter is set to add a new string between each element. LCASE (String) Converts strings to lowercase fonts. LEFT (STRING, Length) is started to get the character string to get the length of the length of the length parameter. Len (string) gets the length of the string. Log (NUMBER) Natural logar of value. Ltrim (String) removes the left blank portion of the string. MID (String, Start [, Length]) Remove the strings of the LENGTH length after the Strat parameter set in the string, if the length parameter is not set, then retrieve all the characters after the start in START. Minute (TIME) obtains the partial part of the time content, and the type is Integer. MKDIR (PATH) establishes a new directory. Month (date) gets the date of the date and the type is Integer.
Monthname (Month) obtains a complete way of writing this month according to the received month value. Now () achieves the current date and time. Oct (Number) converts numeric parameters to an 8-enabled value. Replace (Expression, Find, Replace) converts the string specified by the Find parameter in the string to the string specified by the RELACE parameter. Right (String, Length) is started to get the character of the length parameter setting length on the right side of the string. RMDIR (PATH) Removes an empty directory. RND () acquires a decimal number between 0 and 1, if you have different values each time, you need to add Randomize to the Randomize before use. RTRIM (String) removes the right blank portion of the string. Second (TIME) gets the second part of the time content, and the type is Integer. Sign (NUMBER) acquisition value is a positive or negative number, positive transmission back 1, and negative numbers return -1,0 pass back 0. SIN (NUMBER) gets a sinusoidal value of an angle. Space (Number) gets a blank string set by Number parameter. Split (Expression [, Delimiter]) String string into a string array in a condition string set by Delimiter parameter. SQRT (NUMBER) gets a number worth square root. Str (NUMBER) turns back the number into a string. Strreverse (Expression) obtained the result after the string content reversal. Tan (NUMBER) acquires a positive cut value of an angle. TimeOfDay () gets the current time that does not contain the date. Timer () gets the number of seconds from 0:00 to the current time, and the type is Double. TimeSerial (Hour, Minute, Second) combines the received parameters into a data available only time DATE. TIMAVALUE (TIME) gets the time value that meets the country setting style. Today () gets the date that does not contain time today. Trim (string) removes the head of the string and ends. TypeName (varName) gets the type of variable or object. Ubound (ArrayName [, Dimension]) acquires the final index value of the array, and the Dimension parameter is the final index value of the acquisition of the shorter dimension.
UCASE (String) Converts strings to uppercase. Val (string) converts a string of characters to a numerical state. If the content containing non-numbers in the string, it will be removed as a number. The date in the parameters taken by Weekday (Date) is a week, Sunday is 1, Monday 2, and Tuesday is 3. WeekDayName (Number) obtained the name of the week, the received parameters are 1 to 7, the Sunday is 1, Monday is 2, Tuesday is 3.
// get the location code of Chinese characters
Byte [] array = new byte [2];
Array = system.text.Encoding.default.getbytes ("ah");
INT I1 = (SHORT) (Array [0] - '/ 0');
INT I2 = (SHORT) (Array [1] - '/ 0');
// unicode decoding method
Array = system.text.Encoding.uitode.getbytes ("ah");
I1 = (short) (Array [0] - '/ 0');
I2 = (short) (Array [1] - '/ 0');
// unicode anticode is Chinese character
String str = "4a55";
String S1 = Str.Substring (0, 2);
String s2 = str.substring (2, 2);
INT T1 = Convert.TOINT32 (S1, 16); INT T2 = Convert.TOINT32 (S2, 16);
Array [0] = (Byte) T1;
Array [1] = (Byte) T2;
String s = system.text.Encoding.uitode.getstring (array);
// Default method anti-decoding is Chinese characters
Array [0] = (Byte) 196;
Array [1] = (Byte) 207;
S = system.text.encoding.default.getstring (array);
// Take the string length
S = "IAM square gun";
INT LEN = S.LENGTH; // Will Output AS 6
BYTE [] SARR = system.text.encoding.default.getbytes (s);
Len = Sarr.Length; // Will Output AS 3 3 * 2 = 9
// String plus
System.text.stringbuilder sb = new system.text.stringbuilder ("");
SB.Append ("i");
SB.Append ("am");
Sb.append ("Square Rifle");