October 1998
Intermediate to advanced
656 pages
16h 10m
English
| Dictionary.Keys Method (VB6) |
Yes
dictionaryobject.Keys
dictionaryobject
Use: Required
Data Type: Dictionary object
A reference to a Dictionary object.
A Variant array of subtype String.
Returns an array containing all the Key values in the specified Dictionary object.
The returned array is always a 0-based variant array whose data subtype is String.
The Keys method retrieves only the keys stored in a Dictionary object; you can retrieve all the Dictionary object's items by calling its Items method.
Dim vArray As Variant
vArray = DictObj.Keys
For i = 0 to DictObj.Count -1
Debug.Print vArray(i)
Next
Read now
Unlock full access