ASP Functional Library (4)

Source: Internet
Author: User
Function

   IsDate ()
   FUNCTION: Determining whether an object is a date, returning a Boolean value
   syntax:isdate (expression)
& nbsp;  Arguments:expression is any valid expression.
   EXAMPLE: <%
  strtest = "8/4/99"
  response.write IsDate (strtest)
  %>
   result:true
  
  isempty ()
   FUNCTION: Determines whether an object is initialized and returns a Boolean value.
   syntax:isempty (expression)
   ARGUMENTS:
   EXAMPLE: <%
 & Nbsp;dim I
  response.write isempty (i)
  %>
   result:true
   
  isnull ()
   FUNCTION: Determines whether an object is empty and returns a Boolean value.
   syntax:isnull (expression)
   ARGUMENTS:
   EXAMPLE: <%
   dim I
  response.write IsNull (i)
  %>
   result:false
 &  nbsp
  isnuMeric ()
   FUNCTION: Determines whether an object is a number and returns a Boolean value.
   syntax:isnumeric (expression)
   ARGUMENTS:
   EXAMPLE: <%
 & Nbsp;i = "345"
  response.write isnumeric (i)
  %>
   result:true
   even if the number is quoted, the ASP still thinks it is a number.

    IsObject ()
   FUNCTION: Determines whether an object is an object and returns a Boolean value.
   syntax:isobject (expression)
   ARGUMENTS:
   EXAMPLE: <%
 & nbsp Set con = Server.CreateObject ("ADODB.") Connection ")
  response.write IsObject (con)
  %>
   result:true
  
  lbound ()
   FUNCTION: Returns the lowest available subscript for the specified array dimension.
   Syntax:lbound (arrayname [, Dimension])
   ARGUMENTS:; dimension indicates the integer to which dimension lower bound to return. Use 1 to represent the first dimension, 2
   represents the second dimension, and so on. If the dimension argument is omitted, the default value is 1.
   EXAMPLE: <%
  i = Array ("Monday", "Tuesday", "Wednesday")
   Response.Write LBound (i)
  %>
   result:0
  
  lcase ()
   FUNCTION: Return lowercase form of string
   syntax:lcase (String)
   arguments:string is any VA Lid string expression.
   ExampLE: <%
  strtest = "This is a test!"
  response.write LCase (strtest)
  %>
   Result:this is a test!
  
  left ()
   FUNCTION: Returns the previous character (with length characters) of the length of the character on the left of the string.
   syntax:left (string, length)
   ARGUMENTS:
   EXAMPLE: <%
 & Nbsp;strtest = "This is a test!"
  response.write Left (strtest, 3)
  %>
   result:thi







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.