打印本文 打印本文  关闭窗口 关闭窗口
ASP中的函数应用方法及应用举例(一)
作者:采集员 文章来源:来源于网络 点击数: 更新时间:2005/9/10 12:54:03
quot;Test!"
response.write IsArray(strTest)
%>
  RESULT: False
-------------------------------------

17. IsDate()
  FUNCTION: Returns a boolean value indicating whether the expression can be converted to a date.
  SYNTAX: IsDate(expression)
  ARGUMENTS: expression is any valid expression.
  EXAMPLE: <%
strTest = "8/4/99"
response.write IsDate(strTest)
%>
  RESULT: True
-------------------------------------
  
18. IsEmpty()
  FUNCTION: Returns a boolean value indicating whether a variable has been initialized.
  SYNTAX: IsEmpty(expression)
  ARGUMENTS: expression is any valid expression.
  EXAMPLE: <%
Dim i
response.write IsEmpty(i)
%>
  RESULT: True
-------------------------------------
  
19. IsNull()
  FUNCTION: Returns a boolean value that indicates whether an expression contains no valid datatype.
  SYNTAX: IsNull(expression)
  ARGUMENTS: expression is any valid expression.
  EXAMPLE: <%
Dim i
response.write IsNull(i)
%>
  RESULT: False
-------------------------------------
  
20. IsNumeric()
  FUNCTION: Returns a boolean value indicating whether an expression can be evaluated as a number.
  SYNTAX: IsNumeric(expression)
  ARGUMENTS: expression is any valid expression.
  EXAMPLE: <%
i = "345"
response.write IsNumeric(i)
%>
  RESULT: True
(Even if there are quotation marks around 345, which indicates datatype of string, IsNumeric() function
will still try to convert a string to numeric value first)
-------------------------------------


上一页  [1] [2] 



打印本文 打印本文  关闭窗口 关闭窗口