[This is preliminary documentation and subject to change]
Returns true if a specified key exists in the Dictionary object, false if it does not.
object.Exists(key)
object
Required. Always the name of a Dictionary object.
key
Required. Key value being searched for in the Dictionary object.
The following example illustrates the use of the Exists method.
function keyExists(k)
{
var fso, s = "";
d = new ActiveXObject("Scripting.Dictionary");
d.Add("a", "Athens");
d.Add("b", "Belgrade");
d.Add("c", "Cairo");
if (d.Exists(k))
s += "Specified key exists.";
else
s += "Specified key doesn't exist.";
return(s);
}
Add Method (Dictionary) | Items Method | Keys Method | Remove Method | RemoveAll MethodApplies To: Dictionary Object