Iterate through a VB6 Dictionary

Posted by Dinah on Stack Overflow See other posts from Stack Overflow or by Dinah
Published on 2010-05-07T15:45:37Z Indexed on 2010/05/07 15:48 UTC
Read the original article Hit count: 304

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about asp-classic

Related posts about vb6