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

VBS教程:方法-Exists 方法

 更新時間:2006年11月16日 00:00:00   作者:  

Exists 方法

如果在 Dictionary 對象中存在指定鍵,返回 True;如果不存在,返回 False

object.Exists(key)

參數(shù)

object

必選項. 總是 Dictionary 對象名稱。

key

必選項. 在Dictionary 對象中查找的Key 值。

說明

下面例子舉例說明如何使用Exists 方法:

 Function KeyExistsDemo   Dim d, msg              '創(chuàng)建一些變量。  Set d = CreateObject("Scripting.Dictionary")  d.Add "a", "Athens"     '添加一些鍵和項目。  d.Add "b", "Belgrade"  d.Add "c", "Cairo"  If d.Exists("c") Then    msg = "指定的鍵存在。"  Else    msg = "指定的鍵不存在。"  End If  KeyExistsDemo = msgEnd Function

請參閱

相關(guān)文章

最新評論