Hi all,
I've created a dictionary and need to get the key values displayed on my form at runtime. The dictionary was created as follows:
Private Sub Form_Load()
Dim def ' Create the variable.
Set def = CreateObject("Scripting.Dictionary")
def.Add "a", "Athens" ' Add keys and items.
def.Add "b", "Belgrade"
def.Add "c", "Cairo"
End Sub
I'd like to get the keys (a,b,and c) to appear in a listbox on my form. I've searched far and wide for examples but have not had much luck.
Any ideas?
Owen
I've created a dictionary and need to get the key values displayed on my form at runtime. The dictionary was created as follows:
Private Sub Form_Load()
Dim def ' Create the variable.
Set def = CreateObject("Scripting.Dictionary")
def.Add "a", "Athens" ' Add keys and items.
def.Add "b", "Belgrade"
def.Add "c", "Cairo"
End Sub
I'd like to get the keys (a,b,and c) to appear in a listbox on my form. I've searched far and wide for examples but have not had much luck.
Any ideas?
Owen