Property

Dictionary.Count


Warning

This item was deprecated in version 2019r2. Please use Dictionary.KeyCount as a replacement.

Description

The number of key-value pairs in the Dictionary.

Notes

Returns the actual Count, not the Ubound of an array.

Sample code

The following code displays the number of key-value pairs:

Dim d As New Dictionary
' display the entries for the dictionary
MsgBox(Str(d.Count))

Compatibility

All project types on all supported operating systems.