最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
ASP中的函数应用方法及应用举例(二)
时间:2022-07-02 23:39:22 编辑:袖梨 来源:一聚教程网
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: <%
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: <%
相关文章
- 《潜行者2:切尔诺贝利之心》游戏车辆使用推荐 11-22
- 《潜行者2:切尔诺贝利之心》挡路的特异点处理方法介绍 11-22
- 《潜行者2:切尔诺贝利之心》开局获得满强AK方法介绍 11-22
- 《潜行者2:切尔诺贝利之心》军用防弹背心获得方法介绍 11-22
- 《潜行者2:切尔诺贝利之心》防毒面具获得方法介绍 11-22
- 《潜行者2:切尔诺贝利之心》开局捡尸体摸尸注意事项分享 11-22