ASP function application method and example (2)

Source: Internet
Author: User
21. IsObject ()
FUNCTION: Returns a boolean value indicating whether an expression refers to an automation object.
SYNTAX: IsObject (expression)
ARGUMENTS: expression is any valid expression.
EXAMPLE: <%
Set con = Server. CreateObject ("ADODB. Connection ")
Response. write IsObject (con)
%>
RESULT: True
-------------------------------------
    
22. LBound ()
FUNCTION: Returns the base index value for a dimension of any array.
SYNTAX: Lbound (arrayname [, dimension])
ARGUMENTS: arrayname is the name of any array; dimension is an optional number indicating the dimension
To find the lower bound.
EXAMPLE: <%
I = Array ("Monday", "Tuesday", "Wednesday ")
Response. write LBound (I)
%>
RESULT: 0
-------------------------------------
    
23. LCase ()
FUNCTION: Returns a string that has been converted into lowercase characters.
SYNTAX: Lcase (string)
ARGUMENTS: string is any valid string expression.
EXAMPLE: <%
StrTest = "This is a test! "
Response. write LCase (strTest)
%>
RESULT: this is a test!
-------------------------------------
    
24. Left ()
FUNCTION: Returns the number of characters from the left side of a string.
SYNTAX: Left (string, length)
ARGUMENTS: string is any valid string expression; length is the length of characters to return.
EXAMPLE: <%

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.