List<string> list = new List<string>();
ArrayList dsQuestionNumber = dac.getQuestionNumberList(txtFormName.Text);
for (int i = 1; i < 151; i++)
{
list.Add(i.ToString());
}
foreach (string s in new System.Collections.ArrayList(dsQuestionNumber))
{
list.Remove(s);
}
string[] terms = list.ToArray();
Intermediate ASP.net User, Using VS2008/VS2010 with C# and SQL2005, SQL2008, Silverlight 3
---------------------
Mark as Answered if it helped
Marked as answer by cubangt on May 04, 2012 06:45 PM
cubangt
Contributor
3052 Points
2405 Posts
Re: Build array of numbers MINUS numbers returned in datatable
May 04, 2012 06:45 PM|LINK
List<string> list = new List<string>(); ArrayList dsQuestionNumber = dac.getQuestionNumberList(txtFormName.Text); for (int i = 1; i < 151; i++) { list.Add(i.ToString()); } foreach (string s in new System.Collections.ArrayList(dsQuestionNumber)) { list.Remove(s); } string[] terms = list.ToArray();---------------------
Mark as Answered if it helped