StringCollection[]

  • Thread starter Thread starter Dan
  • Start date Start date
D

Dan

Hi,

Is it possible to iterate through a StringCollection[] ? I have the
following code but "row" always seems to contain the values of rowValues2

Thanks for any input,

Danny





StringCollection[] scArray = new StringCollection[]{rowValues1, rowValues2};



foreach (StringCollection row in scArray) //Does not seem to work for a
StringCollection[]

{



}
 
Hi Dan,

Try this code:

foreach (StringCollection row in scArray)
{
foreach(string str in row)
MessageBox.Show (str);
}



Regards,
Peter
 
Back
Top