欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片



Key 屬性

在 Dictionary 對(duì)象中設(shè)置 key。

object.Key(key) =newkey

參數(shù)

object

必選項(xiàng)。通常是 Dictionary 對(duì)象的名稱。

Key

必選項(xiàng)。要改變的 Key 值。

Newkey

必選項(xiàng)。代替指定 key 值的新值。

說(shuō)明

如果在更改 key 值時(shí)未找到 key,則出現(xiàn)運(yùn)行時(shí)錯(cuò)誤

下面例子舉例說(shuō)明如何使用 Key 屬性:

Function DicDemo
Dim d '創(chuàng)建變量。
 Set d =CreateObject("Scripting.Dictionary") d.Add "a", "Athens" '添加鍵和項(xiàng)目對(duì)。
 d.Add "b", "Belgrade" d.Add "c", "Cairo" d.Key("c") ="d" '"c"的鍵設(shè)置為"d"。
 DicDemo =d.Item("d") '返回相關(guān)項(xiàng)目。
End Function

請(qǐng)參閱

CompareMode 屬性 | Count 屬性 | Item 屬性

應(yīng)用于:Dictionary 對(duì)象

返回首頁(yè)