array()
function:返回一个数组 【程序编程相关:HTML中加弹出窗口方法】 【推荐阅读:PEAR/HTML/HTML_Quick】 syntax:array(list) 【扩展信息:Ini文件简单封装】 arguments:字符,数字均可 example:<% dim myarray() for i = 1 to 7 redim preserve myarray(i) myarray(i) = weekdayname(i) next %> result:建立了一个包含7个元素的数组myarray myarray("sunday","monday", ... ... "saturday") cint() function:将一个表达式转化为数字类型 syntax:cint(expression) arguments:任何有效的字符均可 example:<% f = "234" response.write cint(f) + 2 %> result:236 转化字符"234"为数字"234",如果字符串为空,则返回0值 createobject() function:建立与返回一个已注册的activex组件的实例. syntax:createobject(objname) arguments:objname 是任何一个有效.已注册的activex组件的名字. example:<% set con = server.createobject("adodb.connection") %> result: cstr() function:转化一个表达式为字符串. syntax:cstr(expression) arguments:expression 是任何有效的表达式. example:<% s = 3 + 2 response.write "the result is: " & cstr(s) %> result:转化数字“5”为字符“5”. date() function:返回当前系统日期. syntax:date() arguments:none. example:<%=date%> result:8/4/99 dateadd() function:返回一个被改变了的日期. syntax:dateadd(timeinterval,number,date) arguments:timeinterval is the time interval to add; number is amount of time intervals to add; and date is the starting date. example:<% currentdate = #8/4/99# newdate = dateadd("m",3,currentdate) ... 下一页