Sunday 15 April 2012

vb.net - How to create a For loop for each Value in Dictionary Array VB? -


I am working in a VB script

This is my dictionary content < ("Q", {"frag", "", " "Donar"})

How do I create a loop for each value? As for <<< >>

for each string string in the KBDictionary.Values ​​ which I have tried wrong method

You are working with the array of strings ...

Make changes:

   

  for each string KBDictionary.Values ​​in the string in the form   

* to point to the array Note the addition of parentheses.

If you want to work at the same time with the key and value, then use a KeyValuePair like this:

  As a solepirator for every KVP (String, strings) in KbDictionary Debug.Print (kvp.Key & amp; "- & gt;" & String.Join (",", kvp.Value)) Next   < / Div> 

No comments:

Post a Comment