一個數組的下界.
格式:Lbound(arrayname[,dimension])
參數:arrayname是數組變量,dimension是任意項
例子:
i=array(\"1\",\"2\",\"3\")
response.writelbound(i)
結果:0
14.函數Lcase()
功能:將一字符類型變量的字符全部變換小寫字符.
格式:Lcase(string)
參數:string是字符串變量
例子:
str=\"THISisLcase!\"
response.writeLcase(str)
結果:thisislcase!
15.函數left()
功能:截取一個字符串的前部分;
格式:left(string,length)
參數:string字符串,length截取的長度.
例子:
結果:thisi
16.函數len()
功能:返回字符串長度或者變量的字節長度
格式:len(string*varname)
參數:string字符串;varname任意的變量名稱
例子:
strtest=\"thisisatest!\"
response.writeleft(strtest)
結果:15
17.函數ltrim()
功能:去掉字符串前的空格.
格式:ltrim(string)
參數:string字符串.
例子:=ltrim(\"thisisatest!\")
結果:thisisatest!
18.函數Mid()
功能:從字符串中截取字符串.
格式:mid(string,start[,length])
參數:string字符串,start截取的起點,length要截取的長度.
例子:
strtest=\"thisisatest,TodayisMonday!\"
response.writemid(strtest,17,5)
最新小說章節盡在o o p . t w
結果:Today
19.函數minute()
功能:返回一數值,表示分鐘
格式:minute(time)
參數:time是時間變量
例子lt;%=minute(#12:23:34#)
結果:23
20.函數month()
功能:返回一數值,表示月份
格式:month(time)
參數:time是日期變量
例子
結果:9
21.函數monthname()
功能:返回月份的字符串(名稱).
格式:Monthname(date[,abb])
參數:date是日期變量,abb=true時則月份的縮寫,
例子:
結果:April
22.函數Now()
功能:返回係統的當前時間和日期.
格式:now()
參數:無
例子:
結果:05\/10\/008:45:32pm
23.函數:replace()
功能:在字符串中查找,替代指定的字符串.
格式:replace(strtobesearched,strsearchfor,strreplacewith[,start[,count[,compare]]])
參數:strtobesearched是字符串;strsearchfor是被查找的子字符串;strreplacewith是用來替代的子字符串.start,count,compare是任意選項.
例子:
strtest=\"thisisanapple.\"
response.writereplace(strtest,\"apple\",\"orange\")
結果:thisisanorange.
24.函數right()
功能:截取一個字符串的後部分
)htgnel,gnirts(thgir:式格
.度長的取截htgnel,串符字gnirts:數參
:子例
"\!tsetasisiht"\=tsetrts
)3,tsetrts(thgiretirw.esnopser
!ts:果結
)(dnr數函.52
值數機隨個一回返:能功
])rebmun([dnr:式格
.值數意任是rebmun:數參
:子例
)(ezimodnar
)(dnretirw.esnopser
.數機隨生產能不則,)(ezimodnar無,一之值數1/\0:果結
)(dnuor數函.62
值數整完:能功
)]thgirmun,[noisserpxe(dnuor:式格
.項選意任thgirmun;式達表字數noisserpxe:數參
:子例
45633.21=i
)i(dnuoretirw.esnopser
!tsetasisiht:果結:子例串符字是gnirts:數參)gnirts(mirtr:式格.格空的後串符字掉去:能功)(mirtr數函.7221:果結
)(dnoces數函.82
.值數整個一回返:能功
)emit(dnoces:式格
;式達表間時的效有個一是emit:數參
)#03:82:21#(dnoces=%;tl子例
03:果結
)(esreveRrts數函.92
.串符字的向逆列排串符字原與回返:能功
)gnirts(esreverrts:式格
串符字是gnirts:數參
)"\!tsetasisiht"\(esreverrts=子例
thisisatest!:果結
)(emit數函.03
.值間時的統係前當回返:能功
)(emit:式格
數參