in PHP we know to create an associative array using this code
$variable = array('0001'=>'value1', '0010'=>'value2');
and print all keys and values ββusing this code
foreach($variable as $key1 => $val1) foreach($val1 as $key2 => $val2) echo ("$key2 => $val2 <br />")
and the question is how to do this in vb.net?
as I know, to create an associative array in vb.net using this:
Dim var As New Collection var.Add("value1", "0001") var.Add("value2", "0010")
how to print value and key in vb.net as foreach in php? thanks
source share