J
John
Hi! I have a StringDictionary itialized as follows:
private void frmICUCalculations_Activated(object sender, System.EventArgs e)
{
StringDictionary dataDict = new StringDictionary();
dataDict.Add("Item1", "2001" );
dataDict.Add( "Item2", "2002" );
dataDict.Add( "Item3", "2003" );
}
Now, I want to 'extract' the Value associated with the Key, as follows:
string myValue = dataDict.Item( "Item3" );
This doesn't work .... how should I do this? [The online example
iterates through the entire StringDictionary using the Iiterator; surely
there's a better way....)
Thanks for any and all help!
John F.
private void frmICUCalculations_Activated(object sender, System.EventArgs e)
{
StringDictionary dataDict = new StringDictionary();
dataDict.Add("Item1", "2001" );
dataDict.Add( "Item2", "2002" );
dataDict.Add( "Item3", "2003" );
}
Now, I want to 'extract' the Value associated with the Key, as follows:
string myValue = dataDict.Item( "Item3" );
This doesn't work .... how should I do this? [The online example
iterates through the entire StringDictionary using the Iiterator; surely
there's a better way....)
Thanks for any and all help!
John F.