Community
Dim Entry As DBDictionaryEntry
For Each Entry In oDict
'entry.key
'entry.value
Next
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<Hugh_Compton> wrote in messageI
href="news:6058438@discussion.autodesk.com">news:6058438@discussion.autodesk.com...
am attempting to iterate through a dictionary under the NOD and return the
name of each XRecord held there. I have attached the code which shows where I
am stuck. This should be easy - please can someone help 🙂
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<Hugh_Compton> wrote in messageThat
href="news:6059972@discussion.autodesk.com">news:6059972@discussion.autodesk.com...
works great, thanks Tony. Now that I have the name, how would I get the
corresponding key?
My attempt:
For Each kvp As KeyValuePair(Of
String, String) In dictionary
MsgBox("Key= " + kvp.Key + vbNewLine +
"Value= " + kvp.Value)
Next kvp
This returns error "Specified cast
is not valid" 😞
ChiefBrainCloud - couldn't seem to make your example
key.value equal to the name of my XRecord 😞