RESULT: 15 LTrim() FUNCTION: 去掉字符串左边的空格. SYNTAX: LTrim(string) ARGUMENTS: EXAMPLE: %" name="description" />

ASP实用函数库(7)

发表于:2007-06-30来源:作者:点击数: 标签:
Len() FUNCTION: 返回字符串的长度. SYNTAX: Len(string | varName) ARGUMENTS: EXAMPLE: % strTest = "This is a test!" response.write Len(strTest) %> RESULT: 15 LTrim() FUNCTION: 去掉字符串左边的空格. SYNTAX: LTrim(string) ARGUMENTS: EXAMPLE: %
     Len()
   FUNCTION: 返回字符串的长度.
   SYNTAX: Len(string | varName)
   ARGUMENTS: 
   EXAMPLE: <%
  strTest = "This is a test!"
  response.write Len(strTest)
  %>
   RESULT: 15
   
  LTrim()
   FUNCTION: 去掉字符串左边的空格.
   SYNTAX: LTrim(string)
   ARGUMENTS: 
   EXAMPLE: <%
  strTest = " This is a test!"
  response.write LTrim(strTest)
  %>
   RESULT: This is a test!
   
  Mid()
   FUNCTION: 返回特定长度的字符串(从start开始,长度为length).
   SYNTAX: Mid(string, start [, length])
   ARGUMENTS: 
   EXAMPLE: <%
  strTest = "This is a test! Today is Monday."
  response.write Mid(strTest, 17, 5)
  %>
   RESULT: Today
   
  Minute()
   FUNCTION: 返回时间的分钏.
   SYNTAX: Minute(time)
   ARGUMENTS: 
   EXAMPLE: <%=Minute(#12:45:32 PM#)%>
   RESULT: 45
  
  

原文转自:http://www.ltesting.net