Hi,
I have a Sorted List that has 9 key/value pairs. I am trying to take one of
the key/value pairs and store the value of that key into a string variable.
However, the value that actually gets inserted into the variable is "System.
String[]" and I don't understand what happened to my original value in the
key/value pair.
Thanks for your help,
Andy
snippet:
a key="strAmount"
its value="10.01"
stored in a Sorted List
string strAmount = "";
foreach(DictionaryEntry de2 in colVariableName)
{
if(de2.Key.ToString() == "strAmount")
{
strAmount = de2.Value.ToString();
if(strAmount == "")
{
strAmount = "0.00";
}
if(strAmount == "System.String[]");
{
strAmount = "0.00";
}
}
}
--
Message posted via http://www.dotnetmonster.com