您现在的位置: 军旅同心-旅游自驾-军旅文学 >> 读书赏析 >> 学习园地 >> 电脑网络 >> 技术文章 >> 正文
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] 


更多
免责声明:作品版权归所属媒体与作者所有!!本站刊载此文不代表同意其说法或描述,仅为提供更多信息。如果您认为我们侵犯了您的版权,请告知!本站立即删除。有异议请联系我们。
文章录入:烟灰缸    责任编辑:烟灰缸 
网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
| 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 网站地图 | 版权申明 | 网站公告 | 管理登录 |