24.函數Lcase() 功能:將一字符類型變量的字符全部變換小寫字符. 格式:Lcase(string) 參數:string是字串變量 例子: <% str="THIS is Lcase!" response.write Lcase(str) %> 結果:this is lcase! 25.函數left() 功能:截取一個字符串的前部分; 格式:left(string,length) 參數:string字符串,length截取的長度. 例子: <% =left("this is a test!",6) %> 結果:this i 26.函數len() 功能:返回字符串長度或者變量的字節長度 格式:len(string |varname) 參數:string字符串;varname任意的變量名稱 例子: <% strtest="this is a test!" response.write left(strtest) %> 結果:15 27.函數ltrim() 功能:去掉字符串前的空格. 格式:ltrim(string) 參數:string 字串. 例子: <% =ltrim (" this is a test!") 結果:this is a test! 28.函數Mid() 功能:從字串中截取字串. 格式:mid(string,start [,length]) 參數:string字串,start截取的起點,length要截取的長度. 例子: <% strtest="this is a test, Today is Monday!" response.write mid(strtest,17,5) %> 結果:Today 29.函數minute() 功能:返回一數值, 表示分鐘 格式:minute(time) 參數: time是時間變量 例子lt;% =minute(#12:23:34#) %> 結果:23 30.函數month() 功能:返回一數值, 表示月份 格式:month(time) 參數:time是日期變量 例子<% =month(#08/09/99) %> 結果:9 31.函數monthname() 功能:返回月份的字符串(名稱). 格式:Monthname(date [,abb]) 參數:date是日期變量,abb=true時 則月份的縮寫, 例子: <% =monthname(#4/5/99#) %> 結果:April 32.函數Now() 功能:返回系統的當前時間和日期. 格式:now() 參數:無 例子: <% =now() %> 結果: 05/10/00 8:45[1] [2] [3] 下一页
|