📄 vbs514.htm
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><HTML>
<head>
<title>Item Property</TITLE>
<META NAME="CATEGORY" CONTENT="Language Reference">
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso8859-1">
<META NAME="PRODUCT" CONTENT="Visual Basic Scripting Edition">
<META NAME="TECHNOLOGY" CONTENT="SCRIPTING">
<META NAME="Description" CONTENT="Item Property">
<META NAME="keywords" CONTENT="">
</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>Item Property</B></FONT>
</TD>
<TD ALIGN=RIGHT>
<FONT SIZE=2> <A HREF="vbstoc.htm">Language Reference</A> <BR>
<A HREF="vbs16.htm">Version 2</A> <P></FONT>
</TD></TR>
</TABLE>
<FONT SIZE=2><P>
<A HREF="vbs516.htm">See Also</A>
<A HREF="vbs515.htm">Applies To</A></FONT>
<HR NOSHADE SIZE=1>
<H5>Description</H5>
<BLOCKQUOTE>
Sets or returns an <i>item</i> for a specified <i>key</i> in a <b>Dictionary</b> object. For collections, returns an <i>item</i> based on the specified <i>key</i>. Read/write.
</BLOCKQUOTE>
<H5>Syntax</H5>
<BLOCKQUOTE>
<i>object</i>.<b>Item(</b><i>key</i><b>)</b> [= <i>newitem</i>]
<p>The <b>Item</b> property has the following parts:<p>
<TABLE WIDTH=87% BORDER=1 CELLPADDING=5 CELLSPACING=0>
<TR VALIGN=TOP BGCOLOR="#DDDDDD">
<TD><FONT SIZE=2><b>Part</b></FONT></TD>
<TD><FONT SIZE=2><b>Description</b></FONT></TD></TR>
<TR VALIGN=TOP>
<TD><FONT SIZE=2><i>object</i></FONT></TD>
<TD><FONT SIZE=2>Required. Always the name of a collection or <b>Dictionary</b> object.</FONT></TD></TR>
<TR VALIGN=TOP>
<TD><FONT SIZE=2><i>key</i></FONT></TD>
<TD><FONT SIZE=2>Required. <i>Key</i> associated with the <i>item</i> being retrieved or added.</FONT></TD></TR><TR VALIGN=TOP>
<TD><FONT SIZE=2><i>newitem</i></FONT></TD>
<TD><FONT SIZE=2>Optional. Used for <b>Dictionary</b> object only; no application for collections. If provided, <i>newitem</i> is the new value associated with the specified <i>key</i>.</FONT></TD></TR>
</TABLE>
</BLOCKQUOTE>
<H5>Remarks</H5>
<BLOCKQUOTE>
If <i>key</i> is not found when changing an <i>item</i>, a new <i>key</i> is created with the specified <i>newitem</i>. If <i>key</i> is not found when attempting to return an existing item, a new <I>key</I> is created and its corresponding item is left empty.
</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></FONT></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -