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

VBS教程:方法-Items 方法

 更新時(shí)間:2006年11月16日 00:00:00   作者:  

Items 方法

返回一個(gè)數(shù)組,其中包含有 Dictionary 對(duì)象中的所有項(xiàng)目。

object.Items

object 應(yīng)為 Dictionary 對(duì)象的名稱。

說明

以下代碼舉例說明如何使用 Items 方法:

Function DicDemo   Dim a,d,I,s                  '創(chuàng)建一些變量Set d = CreateObject("Scripting.Dictionary")d.Add "a","Athens"          '添加鍵和項(xiàng)目d.Add "b","Belgrade"d.Add "c","Cairo"a = d.Items                  '獲取項(xiàng)目。For i = 0 To d.Count -1       '循環(huán)使用數(shù)組。  s = s & a(i) & "<BR>"       '創(chuàng)建返回字符串。  Next  DicDemo = sEnd Function

相關(guān)文章

最新評(píng)論