ASP string Conversion function usage

Source: Internet
Author: User

ASC (str) returns the ASCLL symbol for the first character

INSTR (START,STR1,STR2) starts from the start position of the string str1 to find str2)  lcase (str) converts all characters in the string str to lowercase  left (str, Len) returns the string  len (str) with the leftmost length of Len in the string str, which returns the string str length  ltrim (str) to remove the left white space of str  mid (Str,start, Len) returns the Len character starting from the start character of Str. Right (Str,len) returns the Len character  rtrim (str) to the left of the string  strcomp (Str1,str2[,method]) and returns the comparison result of two strings. If the string str is less than the string str2, then 1 is returned, if equality returns 0, if the string str is greater than the string str2 returns 1, the parameter method is compared, 0 is binary, 1 represents the literal InStrRev (str1, STR2) returns the position of the first occurrence of a string in the string str1, starting at the end of the search str2.  trim (str) removes both spaces  ucase (str) converts all strings in the string str to uppercase  cbool (expression) to convert expression to a Boolean type  cbyte: Convert to Single-byte type  cdate: Convert to date type &NBSP;CDBL: Convert to Double type &NBSP;CHR: ASCII represented convert to corresponding string  cint: Convert to Integer type &NBSP;CLNG: Convert Long Integer &NBSP;CSNG: Convert single precision type &NBSP;CSTR: Convert String type  hex: Convert to hexadecimal character  int: Rounding  fix: Rounding  oct: Converting to octal characters   IsArray (Var): Determines whether the specified expression var is an array  isdate (VAR): Determine if Var can be converted to a date type  isempty (VAR): Determine if the expression var has been initialized   IsNull (Var): Determines whether the expression var is empty  isnumber (Var): Determines whether the expression Var is a numeric  isobject (Var): Determines whether an expression is an object   VarType (VAR): Returns the specified variable var type &Nbsp;date (): Returns the system current time  dateserial (Year,month,day) returns a date subtype  datevalue (string): Converts a string to a date type  day (date): Returns the day of the specified date  hour (time): returned to the specified hour  minute (time) returned to the specified minute  second (time) returned to the specified hour  now () Returns the current system date and time  time () returns the current system time  timevalue (String) converts a string to a time type  year (date) returns the year of the specified date  month (date) Returns the day of the week returned to the specified date month  weekday (date). 1 for Sunday, 7 for Saturday   operator () 1, function 2 arithmetic operator: ^ exponentiation 3, minus 4, * multiplication 5,/Division 5, \ Divisible 6, mod for remainder 7, +8,-9 link operator: &9 comparison operator: =, <>, <, > , <=, >=, is (10) logical operators: not "11," and "12, or" or "13, XOR" XOR "14" Integer  boolean (Boolean operation) 255 of the data type subtype  byte:0 to 0: True or false currency (monetary data)  date: Numeric  double that represents a date: double-precision floating-point number  empty: For a numeric variable, a value of 0, and a zero-length string for a string variable ("" )  error: Integer with error number inter:-32768 to 32767

ASP string conversion function usage

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.