Iterate through a VB6 Dictionary
- by Dinah
I'm a non-VB6 person who had the misfortune of inheriting a buggy legacy VB6/Classic ASP project. There's a section where a lot of entries are put into a Dictionary and I want to see all it contains. I tried this (oParams is a Dictionary):
Dim o As Object
Dim sDicTempAggr As String
sDicTempAggr = ""
For Each o In oParams
sDicTempAggr = sDicTempAggr & ", " & o
Next
Which returned:
Object doesn't support this property or method : 438
Using Option Explicit, how do I iterate through a VB6 Dictionary to find out everything it contains?