複製鏈接
請複製以下鏈接發送給好友

items

鎖定
items,描述返回一個包含 Dictionary 對象中所有條目數組
中文名
items
釋    義
包含 Dictionary 所有條目的數組
語    法
object.Itemsobject
Items 方法 描述返回一個包含 Dictionary 對象中所有條目的數組。語法object.Itemsobject始終是一個 Dictionary 對象的名字。説明下面的代碼舉例説明了 Items 方法的使用。:Dim a, d, i '創建一些變量Set d = CreateObject("Scripting.Dictionary")d.Add "a", "Athens" '添加一些關鍵字和條目。d.Add "b", "Belgrade"d.Add "c", "Cairo"a = d.Items '取得條目For i = 0 To d.Count -1 '重複數組 Print a(i) '打印條目Next...