<HTML><HEAD><TITLE>VBScript 语言参考语法参考-asp手册asp语法查询vbscript查询手册asp函数vbscript函数asp用户手册在线查询</title>
<link href="style.css" tppabs="http://www.9sino.com/web2/img/aspvbscript/style.css" rel=STYLESHEET type=text/css>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<SCRIPT language=JavaScript>
<!--
function msieversion()
{
var ua = window.navigator.userAgent;
var msie = ua.indexOf ( "MSIE " );
if ( msie > 0 ) // is Microsoft Internet Explorer; return version number
return parseInt ( ua.substring ( msie+5, ua.indexOf ( ".", msie ) ) )
else
return 0 // is other browser
}
window.IEVersion = msieversion();
// This part decides if it is IE4 then sends it to the correct page for it
// Else sends it to the plane jane, stale cookie page.
if (window.IEVersion < 4){
location.href = "http://www.9sino.com/web2/img/VBSTOCAlt.htm"
}
//-->
</SCRIPT>
<SCRIPT language=VBScript>
<!--
dim lastID
lastId = 0
sub Document_OnMouseOver()
dim eSrc
set eSrc = window.event.srcElement
if eSrc.className = "clsHeading" then
eSrc.style.color= "#0033CC"
end if
end sub
sub Document_OnMouseOut()
dim eSrc
set eSrc = window.event.srcElement
if eSrc.className = "clsHeading" then
eSrc.style.color= "#000000"
end if
end sub
Sub document_onclick
set eTempElement = window.event.srcElement
if eTempElement.className = "clsHeading" then
dim strTemp,idNumber,eSrc
set eSrc = window.event.srcElement.parentElement
strTemp = eTempElement.id
idNumber = right(strTemp,2)
' Is the saved id the same as the id of the current element
' If it is then hide the associated blurb and display the contents
if lastId = idNumber then
if window.document.all("idBlurb" & idNumber).style.display = "none" then
window.document.all("img" & idNumber).src = "blueminus.gif"/*tpa=http://www.9sino.com/web2/img/aspvbscript/blueminus.gif*/
window.document.all("idBlurb" & idNumber).style.display = "block"
explanation.style.display = "none"
else
window.document.all("img" & idNumber).src = "blueplus.gif"/*tpa=http://www.9sino.com/web2/img/aspvbscript/blueplus.gif*/
window.document.all("idBlurb" & idNumber).style.display = "none"
explanation.style.display = "block"
end if
else
if lastId <> 0 then
window.document.all("img" & lastId).src = "blueplus.gif"/*tpa=http://www.9sino.com/web2/img/aspvbscript/blueplus.gif*/
window.document.all("idBlurb" & lastId).style.display = "none"
end if
window.document.all("img" & idNumber).src = "blueminus.gif"/*tpa=http://www.9sino.com/web2/img/aspvbscript/blueminus.gif*/
explanation.style.display = "none"
window.document.all("idBlurb" & idNumber).style.display = "block"
end if
lastId=idNumber
end if
end sub
-->
</SCRIPT>
<META content="MSHTML 5.00.2920.0" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff leftMargin=20 link=#0033cc text=#000000 topMargin=0
vLink=#666666>
<table cellpadding=2 cellspacing=1 border=0 width=100%>
<tr>
<td width=200 valign=top>
<style>
Ul{margin-left:15px;}
</style>
<UL>
<LI><a href="vtoriVBScript.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vtoriVBScript.htm">VBScript</a>
<UL>
<LI><a href="vbstutor.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vbstutor.htm">VBScript 用户手册</a>
<UL>
<LI><a href="vbsWhat.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vbsWhat.htm">什么是 VBScript?</a>
<LI><a href="vbshtml.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vbshtml.htm">在 HTML 页面中添加 VBScript 代码</a>
<LI><a href="vtoriVBScriptFundamentals.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vtoriVBScriptFundamentals.htm">VBScript基础</a>
<UL>
<LI><a href="vbsDataType.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vbsDataType.htm">VBScript 数据类型</a>
<LI><a href="vbsVariables.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vbsVariables.htm">VBScript 变量</a>
<LI><a href="vbsConstants.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vbsConstants.htm">VBScript 常数</a>
<LI><a href="vbsOperators.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vbsOperators.htm">VBScript 运算符</a>
<LI><a href="vbsConditional.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vbsConditional.htm">使用条件语句</a>
<LI><a href="vbsLooping.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vbsLooping.htm">使用循环语句</a>
<LI><a href="vbsProcedures.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vbsProcedures.htm">VBScript 过程</a>
<LI><a href="vbsCodingConventions.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vbsCodingConventions.htm">VBScript 编码约定</a>
</UL>
<LI><a href="vtoriVBScriptInInternetExplorer.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vtoriVBScriptInInternetExplorer.htm">Internet Explorer 中的 VBScript</a>
<UL>
<LI><a href="vbsfirst.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vbsfirst.htm">VBScript 页面的简单样例</a>
<LI><a href="vbscntrl.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vbscntrl.htm">VBScript 与窗体</a>
<LI><a href="vbsobjs.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vbsobjs.htm">在 VBScript 中使用对象</a>
</UL>
</UL>
<LI><a href="vbstoc.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vbstoc.htm">语言参考</a>
<UL>
<LI><a href="vsgrpFeatures.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vsgrpFeatures.htm">VBScript 特性</a>
<LI><a href="vsgrpVBSFeatures.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vsgrpVBSFeatures.htm">未包含在 Visual Basic for Applications 中的 VBScript 特性</a>
<LI><a href="vsgrpNonFeatures.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vsgrpNonFeatures.htm">未包含在 VBScript 中的 Visual Basic for Applications 特性</a>
<LI><a href="vtoriVBScriptConstants.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vtoriVBScriptConstants.htm">VBScript 常数</a>
<UL>
<LI><a href="vsconColor.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vsconColor.htm">颜色常数</a>
<LI><a href="vsconCompare.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vsconCompare.htm">比较常数</a>
<LI><a href="vsconDateTime.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vsconDateTime.htm">日期和时间常数</a>
<LI><a href="vsconDateFormat.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vsconDateFormat.htm">日期格式常数</a>
<LI><a href="vsconMisc.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vsconMisc.htm">其他常数</a>
<LI><a href="vsconMsgBox.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vsconMsgBox.htm">MsgBox 常数</a>
<LI><a href="vsconString.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vsconString.htm">字符串常数</a>
<LI><a href="vsconTriState.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vsconTriState.htm">三态常数</a>
<LI><a href="vsconVarType.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vsconVarType.htm">VarType 常数</a>
<LI><a href="vsconVBScript.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vsconVBScript.htm">VBScript 常数</a>
</UL>
<LI><a href="javascript:if(confirm('http://www.9sino.com/web2/img/aspvbscript/vtoriVBScriptErrors.htm \n\n该文件未被 Teleport Pro 下载,因为 服务器报告 - 该项目不可用。 \n\n你想要从服务器打开它吗?'))window.location='http://www.9sino.com/web2/img/aspvbscript/vtoriVBScriptErrors.htm'" tppabs="http://www.9sino.com/web2/img/aspvbscript/vtoriVBScriptErrors.htm">VBScript 错误</a>
<UL>
<LI><a href="vsmscRuntimeErrors.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vsmscRuntimeErrors.htm">VBScript 运行时错误</a>
<LI><a href="vsmscSyntaxErrors.htm" tppabs="http://www.9sino.com/web2/img/aspvbscript/vsmscSyntaxErrors.htm">VBScript 语法错误</a>
</UL>
<LI><a href="vtoriVBScriptEvents.htm" tppabs="http://www.9sino.com/web2/i