<html><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>VBScript 语言参考</TITLE>
<LINK href="msdnie4a-1.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 = "VBSTOCAlt.htm"/*tpa=http://doc.51windows.net/vbscript/HTML-vss/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://doc.51windows.net/vbscript/html-vss/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://doc.51windows.net/vbscript/html-vss/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://doc.51windows.net/vbscript/html-vss/blueplus.gif*/
window.document.all("idBlurb" & lastId).style.display = "none"
end if
window.document.all("img" & idNumber).src = "blueminus.gif"/*tpa=http://doc.51windows.net/vbscript/html-vss/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>
<P><FONT face="Verdana, Arial, Helvetica" size=2>
<BR>
Visual Basic Scripting Edition
<BR>
<HR>
<BR>
<H3><font size=4>VBScript 语言参考</FONT> </H3>
</TD>
<TD align=right style="BACKGROUND-COLOR: white">
<P></FONT></P></TD></TR></TBODY></TABLE><BR></FONT></P>
<TABLE border=0 cellPadding=0 cellSpacing=0 class=clsMainTable height="100%"
width="100%">
<TBODY>
<TR>
<TD class=clsMainTable height="100%" id=Main vAlign=top width="30%">
<DIV>
<P class=clsHeading id=heading01
title="单击查看特性信息列表"><img class="clsHeading" id="img01" src="blueplus.gif" WIDTH="18" HEIGHT="23"> 特性信息</P>
<P class=clsHeading id=heading02
title="单击查看字母顺序的关健字列表"><img class="clsHeading" id="img02" src="blueplus.gif" WIDTH="18" HEIGHT="23"> 字母顺序关健字列表</P>
<P class=clsHeading id=heading03
title="单击查看常数列表"><img class="clsHeading" id="img03" src="blueplus.gif" WIDTH="18" HEIGHT="23"> 常数</P>
<P class=clsHeading id=heading11 title="单击查看错误列表"><img class="clsHeading" id="img11" src="blueplus.gif" WIDTH="18" HEIGHT="23"> 错误</P>
<P class=clsHeading id=heading04 title="单击查看事件列表"><img class="clsHeading" id="img04" src="blueplus.gif" WIDTH="18" HEIGHT="23"> 事件</P>
<P class=clsHeading id=heading05
title="单击查看函数列表"><img class="clsHeading" id="img05" src="blueplus.gif" WIDTH="18" HEIGHT="23"> 函数</P>
<P class=clsHeading id=heading06
title="单击查看方法列表"><img class="clsHeading" id="img06" src="blueplus.gif" WIDTH="18" HEIGHT="23"> 方法</P>
<P class=clsHeading id=heading07
title="单击查看对象列表"><img class="clsHeading" id="img07" src="blueplus.gif" WIDTH="18" HEIGHT="23"> 对象</P>
<P class=clsHeading id=heading08
title="单击查看运算符列表"><img class="clsHeading" id="img08" src="blueplus.gif" WIDTH="18" HEIGHT="23"> 运算符</P>
<P class=clsHeading id=heading09
title="单击查看属性列表"><img class="clsHeading" id="img09" src="blueplus.gif" WIDTH="18" HEIGHT="23"> 属性</P>
<P class=clsHeading id=heading10
title="单击查看“语句”列表"><img class="clsHeading" id="img10" src="blueplus.gif" WIDTH="18" HEIGHT="23"> 语句</P></DIV></TD>
<TD class=clsMainTable height="100%" id=Contents vAlign=top width="60%">
<DIV id=explanation style="BACKGROUND-COLOR: #eeeeee">
<P>
<CENTER><B>欢迎使用 VBScript 语言参考</B></CENTER>
<P>
<BLOCKQUOTE>通过对信息进行分组,可以使您方便地研究 Visual Basic 脚本的各个主题。<P>
可以在“字母顺序关键字列表”中找到 VBScript 语言的所有主题。如果只需要查看某个主题(例如对象),则有对该主题进行详细说明的章节可供查阅。<P>
如何操作呢?单击左边任意一个标题,即可显示该标题所包含的项目列表。从该列表中选择要查看的主题。打开所选主题之后,就能够很容易地链接到其他相关章节。<P>
请尽情浏览 JScript 语言参考的各个部分,您会发现 VBScript 语言有多么丰富。 </P></BLOCKQUOTE><BR></DIV>
<DIV id=idBlurb01 style="DISPLAY: none">
<TABLE border=0 cellPadding=2 cellSpacing=2 style="FONT-SIZE: 10pt"
width="100%">
<TBODY>
<TR vAlign=top>
<TD width="33%"><B>特性</B><BR></TD>
<TD><B>说明</B></TD></TR>
<TR vAlign=top>
<TD><a href="vtoriVersionInformation.htm">版本信息</A><BR></TD>
<TD>按主机应用排序的 VBScript 版本列表和按版本排序的特性列表.</TD></TR>
<TR vAlign=top>
<TD><a href="vsgrpFeatures.htm">VBScript 特性</A><BR></TD>
<TD>VBScript 最新特性列表</TD></TR>
<TR vAlign=top>
<TD><a href="vsgrpNonFeatures.htm">未包含在 VBScript 中的 VBA 特性</A><BR></TD>
<TD>VBScript 最新特性列表:未包含在 VBScript 中的应用程序编辑。</TD></TR>
<TR vAlign=top>
<TD><a href="vsgrpVBSFeatures.htm">未包含在 VBA 中的 VBScript 特性</A></TD>
<TD>未包含在 Visual Basic 中的 VBScript 特性列表:应用程序编辑。</TD></TR>
<TR vAlign=top>
<TD><a href="vsgrpruntimefeatures-1.htm">Microsoft Scripting 运行时特性</A></TD>
<TD>VBScript 中最新的 Scripting 运行时特性列表。</TD></TR></TBODY></TABLE></DIV>
<DIV id=idBlurb02 style="DISPLAY: none">
<TABLE border=0 cellPadding=2 cellSpacing=2 style="FONT-SIZE: 10pt"
width="100%">
<TBODY>
<TR vAlign=top>
<TD width="33%"><B>语言元素</B><BR></TD>
<TD><B>说明</B></TD></TR>
<TR vAlign=top>
<TR vAlign=top>
<TD><a href="vsfctAbs.htm">Abs 函数</A></TD>
<TD>返回数的绝对值。</TD></TR>
<TR vAlign=top>
<TD><a href="vsoprAdd.htm">加法运算符 (+)</A></TD>
<TD>两数相加。</TD></TR>
<TR vAlign=top>
<TD><a href="vsoprAnd.htm">And 运算符</A></TD>
<TD>执行两个表达式的逻辑连接。</TD></TR>
<TR vAlign=top>