Dictionary.Count : Dictionary : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » Dictionary »

 

Dictionary.Count








The Count property contains the number of items in the dictionary.

This property is read only, so it cannot be used to change the size of the dictionary.












<html>
    <script language="JScript">
    <!--
    var fruits = new ActiveXObject("Scripting.Dictionary");

    fruits.Add("A","AA");
    fruits.Add("B","BB");
    fruits.Add("G","CC");
    fruits.Add("O","DD");

    document.write("There are ",fruits.Count," items in this dictionary.");
    -->
    </script>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» Dictionary