您现在的位置: 军旅同心-旅游自驾-军旅文学 >> 读书赏析 >> 学习园地 >> 电脑网络 >> 技术文章 >> 正文
ASP中的函数应用方法及应用举例(二)
作者:采集员 文章来源:来源于网络 点击数: 更新时间:2005-9-10 12:53:58
trTest)
%>
  RESULT: THIS IS A TEST!!
-------------------------------------
  
42. VarType()
  FUNCTION: Returns the subtype of a variable
  SYNTAX: VarType(varName)
  ARGUMENTS: varName is the required variable name
  EXAMPLE: <%
i = 3
response.write varType(i)
%>
  RESULT: 2
(2 indicates Integer. Refers to ASP Constants)
-------------------------------------
  
43. WeekDay()
  FUNCTION: Returns a whole number representing the day of the week.
  SYNTAX: WeekDay(date [, firstdayofweek])
  ARGUMENTS: date is any valid date expression; firstdayofweek is an optional date constant to assign the
first day of week.
  EXAMPLE: <%
d = #8/4/99#
response.write Weekday(d)
%>
  RESULT: 4
(4 indicates the fourth of the week, which is Wednesday)
-------------------------------------
  
44. WeekDayName()
  FUNCTION: Returns the specified day of the week.
  SYNTAX: WeekDayName(weekday [, Abb [, firstdayofweek]])
  ARGUMENTS: weekday is the numeric representation for the day of the week; Abb is an optional boolean
value (if set to true, the weekday name will be abbreviated; if set to false, the full weekday name is
displayed); and firstdayofweek is an optional date constant to assign the first day of week.
  EXAMPLE: <%
d = #8/4/99#
response.write WeekdayName(Weekday(d))
%>
  RESULT: Wednesday
-------------------------------------
  
45. Year()
  FUNCTION: Returns the current year.
  SYNTAX: Year(date)
  ARGUMENTS: date is any valid date expression.
  EXAMPLE: <%=Year(#8/4/99#)%>
  

上一页  [1] [2] 


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