linux社区爱心援助Linux认证系列教程业界动态站务新闻公司招聘建议留言网址大全LPI专题CISCO专题
设为首页
加入收藏
管理团队
JSP  
JAVA  
PERL  
 您的位置:首页 > 开发语言 > ASP >
栏目导栏
  php
  JSP
  ASP
  asp.net
  JAVA
  c/c++/c#
  perl
  JavaScript
  Basic
  Delphi
资料搜索
热门文章
·由HTTP 500 Internal server e
·会员系统“找回密码”的制作方
·ASP实现数字和字母组合并生成图
·简单的asp验证码程序示例
·如何让图片自动缩放以适合界面
·asp中如何调试 ASP 脚本
·如何用foreach遍历页面上所有的
·如何实现站点的RSS输出
·用ASP制作强大的搜索引擎
·采用XMLHTTP编写一个天气预报的
·ASP如何获取真实IP地址
·典型Datagrid分页、排序、删除
·无组件实现文件上传/下载
·一个分页代码例子
·asp+ajax打造无刷新新闻评论系
最新文章
·ASP教程:8、ASP内建对象Respo
·ASP教程:7、ASP内建对象Reque
·ASP教程:6、ASP脚本循环语句
·ASP教程:5、ASP脚本变量、函数
·ASP教程:4、ASP脚本基础
·ASP教程:3、ASP基础
·ASP教程:2、ASP简介
·ASP教程:1、Are you ready?
·ASP中使用SQL语句教程
·ASP进度条
·由HTTP 500 Internal server e
·Asp无组件生成缩略图
·ASP 系列函数大全(4)
·ASP 系列函数大全(3)
·ASP 系列函数大全(2)
Google
 
ASP 系列函数大全(3)
[ 作者:  加入时间:2007-12-03 15:47:58  来自:Linux联盟收集整理 ]
返回结果: False 
   
   
  IsNumeric() 
   
  函数判断一对象是否为数字,返回布尔值. 
   
  表达式 IsNumeric(expression) 
   
  实例: <% 
   
  i = "345" 
   
  response.write IsNumeric(i) 
   
  %> 
   
  返回结果: True 
   
  就算数字加了引号,ASP还是认为它是数字。 
   
   
  IsObject() 
   
  函数判断一对象是否为对象,返回布尔值. 
   
  表达式 IsObject(expression) 
   
  实例: <% 
   
  Set con = Server.CreateObject("ADODB.Connection") 
   
  response.write IsObject(con) 
   
  %> 
   
  返回结果: True 
   
   
  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 | 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 
   
   
  Minute() 
   
  函数返回时间的分钟. 
   
  表达式 Minute(time) 
   
  实例: <%=Minute(#12:45:32 PM#)%> 
   
  返回结果: 45 
   
   
  Month() 
   
  函数返回日期. 
   
  表达式 Month(date) 
   
  实例: <%=Month(#08/04/99#)%> 
   
  返回结果: 8 
   
   
  MonthName() 
   
  函数返回指定月份 
   
  表达式 MonthName(month, [, Abb]) 
   
  实例: <%=MonthName(Month(#08/04/99#))%> 
   
  返回结果: August 
   
   
  Now() 
   
  函数返回系统时间 
   
  表达式 Now() 
   
  实例: <%=Now%> 
   
  返回结果: 9/9/00 9:30:16 AM 
   
   
  Right() 
   
  函数返回字符串右边第length个字符以前的字符(含第length个字符). 
   
  表达式 Right(string, length) 
   
  实例: <% 
   
  strTest = "This is an test!" 
   
  response.write Right(strTest, 3) 
   
  %> 
   
  返回结果: st! 
   
   
  Rnd() 
   
  函数产生一个随机数. 
   
  表达式 Rnd [ (number) ] 
   
  实例: <% 
   
  Randomize()
Linux联盟收集整理 ,转贴请标明原始链接,如有任何疑问欢迎来本站Linux论坛讨论
评论】【加入收藏夹】【 】【打印】【关闭
※ 相关链接
 ·ASP 系列函数大全(2)  (2007-12-03 15:47:25)
 ·ASP 系列函数大全(1)  (2007-12-03 15:46:53)
 ·用ASP制作强大的搜索引擎  (2007-12-03 15:45:48)
 ·实例讲解asp抓取网上房产信息  (2007-12-03 15:44:50)
 ·如何写出优秀的ASP应用  (2007-12-03 15:40:32)
 ·asp内置对象 ObjectContext详解  (2007-12-03 15:39:31)
 ·asp存贮过程  (2007-12-03 15:38:32)
 ·asp内置对象Application详解  (2007-12-03 15:38:01)
 ·自定义aspnet_client的位置  (2007-12-03 15:36:48)
 ·asp常见的错误及其解决方法  (2007-12-03 15:35:59)