|
Dictionary.Items Method
Returns an array containing all the items in a Dictionary object.
object.Items ( )
Arguments
- object
- Required. Always the name of a Dictionary object.
Remarks
The following example illustrates the use of the Items method.
function ItemsDemo()
{
var a, d, i, s; // Create some variables.
d = new Application.Dictionary();
d.Add ("a", "Athens"); // Add some keys and items.
d.Add ("b", "Belgrade");
d.Add ("c", "Cairo");
a = d.Items(); // Get the items.
s = "";
for (i in a) // Iterate the dictionary.
{
s += a[i] + "<br />";
}
return(s); // Return the results.
}
Applies To:
Dictionary Object
Requirements
|