"rhaazy" wrote:
If I want to use a FOREACH loop on an array of strings, but didn't want
to include the first member,how would I do this???
Psuedo Code:::
foreach(string a in myStringArray (where a.index>0))
I don't believe it's possible within the foreach loop syntax. Some
alternate suggestions:
int length = myStringArray.Length;
for (int i = 1; i < length; i++)
{
// do stuff with myStringArray[i]
}
Or:
bool first = true;
foreach(string a in myStringArray)
{
if (first)
first = false;
else
// do stuff
}
--
Timm Martin
Mini-Tools
..NET Components and Windows Software
http://www.mini-tools.com