ASP中的函数应用方法及应用举例(二)

enjoy玫瑰香皂

enjoy玫瑰香皂

2016-01-29 17:11

ASP中的函数应用方法及应用举例(二),ASP中的函数应用方法及应用举例(二)
  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: <%
strTest = "This is a test!"
response.write Left(strTest, 3)
%
  RESULT: Thi
-------------------------------------
  
25. Len()
  FUNCTION: Returns the number of characters in a string or the number of bytes required to store a
variable.
  SYNTAX: Len(string | varName)
  ARGUMENTS: string is any valid string expression; varName is any valid variable name.
  EXAMPLE: <%
strTest = "This is a test!"
response.write Len(strTest)
%
  RESULT: 15
(The total length of strTest is 15 characters)
26.  
LTrim()
  FUNCTION: Returns a string without leading spaces.
  SYNTAX: LTrim(string)
  ARGUMENTS: string is any valid string expression.
  EXAMPLE: <%
strTest = " This is a test!"
response.write LTrim(strTest)
%
  RESULT: This is a test!
-------------------------------------
  
27. Mid()
  FUNCTION: Returns a specified number of characters from a string.
  SYNTAX: Mid(string, start [, length])
  ARGUMENTS: string is any valid string expression; start is a numeric character position to begin
extraction from; length (optional) is the number of characters to return.
  EXAMPLE: <%
strTest = "This is a test! Today is Monday."
response.write Mid(strTest, 17, 5)
%
  RESULT: Today
-------------------------------------
  
28. Minute()
  FUNCTION: Returns the number of the minutes in current system time.
  SYNTAX: Minute(time)
  ARGUMENTS: time is any valid time expression.
  EXAMPLE: <%=Minute(#12:45:32 PM#)%
  RESULT: 45
-------------------------------------
  
29. Month()
  FUNCTION: Returns the number of the month of the year.
  SYNTAX: Month(date)
  ARGUMENTS: date is any valid date expression.
  EXAMPLE: <%=Month(#08/04/99#)%
  RESULT: 8
-------------------------------------
  
30. MonthName()
  FUNCTION: Returns a string identifying th
展开更多 50%)
分享

猜你喜欢

ASP中的函数应用方法及应用举例(二)

ASP
ASP中的函数应用方法及应用举例(二)

ASP中的函数应用方法及应用举例(一)

ASP
ASP中的函数应用方法及应用举例(一)

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

ASP中字符串函数的应用

ASP
ASP中字符串函数的应用

Excel截取中文的综合函数应用举例

电脑入门
Excel截取中文的综合函数应用举例

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

Excel中VLOOKUP函数的应用

电脑入门
Excel中VLOOKUP函数的应用

java中数组的应用及方法

编程语言 网络编程
java中数组的应用及方法

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

全面提速:揭开XP启动如飞的秘密

全面提速:揭开XP启动如飞的秘密

Photoshop基础教程:图层样式详解之三种叠加

Photoshop基础教程:图层样式详解之三种叠加
下拉加载更多内容 ↓