Dictionary.Count Property (VB6)

Syntax

dictionaryobject.Count


dictionaryobject

Use: Required

Data Type: Dictionary object

A reference to a Dictionary object.

Property Data Type

Long.

Description

A read-only property that returns the number of key/item pairs in a Dictionary object.

Rules at a Glance

Unlike a Collection object, the Dictionary object is always 0-based.

Example

The following code fragment shows how you can use the Count property:

Dim vArray As Variant
vArray = DictObj.Items
For i = 0 to DictObj.Count -1
   Set oObj = vArray(i)
Next

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.47.59