网络编程
位置:首页>> 网络编程>> Asp编程>> ASP函数大全(数字函数)(6)

ASP函数大全(数字函数)(6)

 来源:asp之家 发布时间:2009-06-01 12:33:00 

标签:函数,asp,时间,日期,数字


LBound()

函数返回指定数组维的最小可用下标.

表达式 Lbound(arrayname [, dimension])

实例:

<%

i = Array("Monday","Tuesday","Wednesday")

response.write LBound(i)

%>

返回结果: 0


LCase()

函数 返回字符串的小写形式

表达式 Lcase(string)

实例:

<%

strTest = "This is a test!"

response.write LCase(strTest)

%>

返回结果: this is a test!


Left()

函数返回字符串左边第length个字符以前的字符(含第length个字符).

表达式 Left(string, length)

实例:

<%

strTest = "This is a test!"

response.write Left(strTest, 3)

%>
返回结果: Thi


Len()

函数返回字符串的长度.

表达式 Len(string axy varName)

实例:

<%

strTest = "This is a test!"

response.write Len(strTest)

%>

返回结果: 15


LTrim()

函数去掉字符串左边的空格.

表达式 LTrim(string)

实例:

<%

strTest = " This is a test!"

response.write LTrim(strTest)

%>

返回结果: This is a test!


Mid()

函数返回特定长度的字符串(从start开始,长度为length).

表达式 Mid(string, start [, length])

实例:

<%

strTest = "This is a test! Today is Monday."

response.write Mid(strTest, 17, 5)

%>



返回结果: Today

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com