vbs244.htm
来自「关于Visual Basic script 的学习」· HTM 代码 · 共 116 行
HTM
116 行
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><HTML><HEAD><TITLE>Nothing</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso8859-1">
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META NAME="PRODUCT" CONTENT="Visual Basic Scripting Edition">
<META NAME="TECHNOLOGY" CONTENT="SCRIPTING">
<META NAME="CATEGORY" CONTENT="Language Reference">
<META NAME="Keywords" CONTENT="Nothing"><META NAME="Description" CONTENT="Nothing keyword"></HEAD><BODY BGCOLOR=FFFFFF LINK=#0033CC>
<!--TOOLBAR_START-->
<!--TOOLBAR_EXEMPT-->
<!--TOOLBAR_END-->
<FONT FACE="Verdana, Arial, Helvetica" SIZE=2>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR VALIGN=TOP><TD WIDTH=360>
<FONT SIZE=1 COLOR=#660033>Microsoft® Visual Basic® Scripting Edition</FONT><BR>
<FONT SIZE=5 COLOR=#660033><B>Nothing</B></FONT>
</TD>
<TD ALIGN=RIGHT>
<FONT SIZE=2> <A HREF="vbstoc.htm">Language Reference</A> <BR>
<A HREF="vbs16.htm">Version 1</A> <P></FONT>
</TD></TR>
</TABLE>
<P><FONT SIZE=2><A HREF="vbs245.htm">See Also</A></FONT>
<hr noshade size=1>
<H5>Description</H5>
<BLOCKQUOTE>The <b>Nothing</b> keyword in VBScript is used to disassociate an object variable from any actual object. Use the <b>Set</b> statement to assign <b>Nothing</b> to an object variable. For example:<P>
<BLOCKQUOTE>
<PRE><FONT FACE="Courier New" SIZE=3>Set MyObject = Nothing
</FONT></PRE>
</BLOCKQUOTE>
<P>Several object variables can refer to the same actual object. When <b>Nothing</b> is assigned to an object variable, that variable no longer refers to any actual object. When several object variables refer to the same object, memory and system resources associated with the object to which the variables refer are released only after all of them have been set to <b>Nothing</b>, either explicitly using <b>Set</b>, or implicitly after the last object variable set to <b>Nothing</b> goes out of <A HREF="vbs0.htm#defScoping">scope</A>.</BLOCKQUOTE>
<hr noshade size=1>
<p align=center><em><a href="../../common/colegal.htm">© 1997 by Microsoft Corporation. All rights reserved.</a></em></p>
</FONT></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?