最新活动:电脑PC端+手机端+微网站+自适应网页多模板选择-建站388元起价!!!
要源码
当前位置:主页 > 网站建设 > ASP函数速查表,建站技术

ASP函数速查表,建站技术

时间:2023-08-08 08:08:08 阅读: 文章分类: 网站建设 作者: IT网站员

导读:建站技术建站技术Array()函数返回一个数组表达式 Array(list)允许数据类型: 字符,数字均可实例:Dim myArray()For I = 1 to 7Redim建站技术教学技术网站。

建站技术教学技术网站

Array() 函数返回一个数组 表达式 Array(list) 允许数据类型: 字符,数字均可 实例: Dim myArray() For I = 1 to 7 Redim Preserve myArray(i) myArray(i) = WeekdayName(i) Next 返回结果: 建立了一个包含7个元素的数组myArray myArray("Sunday","Monday", … … "Saturday")

Cint() 函数将一个表达式转化为数字类型 表达式 Cint(expression) 允许数据类型: 任何有效的字符均可(不大于32767) 实例: f = "234" response.write cINT(f) + 2 返回结果: 236 转化字符"234"为数字"234",如果字符串为空,则返回0值

CreateObject() 函数建立和返回一个已注册的ACTIVEX组件的实例。 表达式 CreateObject(objName) 允许数据类型: objName 是任何一个有效、已注册的ACTIVEX组件的名字. 实例: Set con = Server.CreateObject("ADODB.Connection")

CStr() 函数转化一个表达式为字符串. 表达式 CStr(expression) 允许数据类型: expression 是任何有效的表达式。 实例: s = 3 + 2 response.write "The 返回结果 is: " & cStr(s) 返回结果: 转化数字“5”为字符“5”。

Date() 函数返回当前系统日期. 表达式 Date() 允许数据类型: None. 实例: =Date 返回结果: 9/9/00

DateAdd() 函数返回一个被改变了的日期。 表达式 DateAdd(timeinterval,number,date) 允许数据类型: timeinterval is the time interval to add; numb织梦模板er is amount of time intervals to add; and date is the starting date. 实例: currentDate = #9/9/00# newDate = DateAdd("m",3,currentDate) response.write newDate currentDate = #12:34:45 PM# newDate = DateAdd("h",3,currentDate) response.write newDate 返回结果: 9/9/00 3:34:45 PM "m" = "month"; "d" = "day"; If currentDate is in time format then, "h" = "hour"; "s" = "second";

DateDiff() 函数返回两个日期之间的差值 。 表达式 DateDiff(timeinterval,date1,date2 [, firstdayofweek [, firstweekofyear]]) 允许数据类型: timeinterval 表示相隔时间的类型,如“M“表示“月”。 实例: fromDate = #9/9/00# toDate = #1/1/2000# response.write "There are " & _ DateDiff("d",fromDate,toDate) & _ " days to millenium from 9/9/00." 返回结果: 从9/9/00 到2000年还有 150 天.

Day() 函数返回一个月的第几日 . 表达式 Day(date) 允许数据类型: date 是任何有效的日期。 实例: =Day(#9/9/00#) 返回结果: 9

关键词标签: 建站 函数 速查表

声明: 本文由我的SEOUC技术文章主页发布于:2023-08-08 ,文章ASP函数速查表,建站技术主要讲述函数,速查表,建站网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: https://www.seouc.com/article/web_38277.html

我的IDC 网站建设技术SEOUC.COM
专注网站建设,SEO优化,小程序设计制作搭建开发定制网站等,数千家网站定制开发案例,网站推广技术服务。
  • 5000+合作客服
  • 8年从业经验
  • 150+覆盖行业
  • 最新热门源码技术文章