string[] text;
if (ds.Tables[0].Rows[0][i].ToString().ToUpper().Trim().Contains("NUMBER :"))
{
s01 = ds.Tables[s].Rows[0][i].ToString().Trim();
SpirNoSplt1 = s01.Split(':');
i = ds.Tables[0].Columns.Count;
}
{
s01 = ds.Tables[s].Rows[0][i].ToString().Trim();
SpirNoSplt1 = s01.Split(':');
i = ds.Tables[0].Columns.Count;
}
i have use array and split and stored in array.now the loop is excute array is not cleared old value is hold in array.
i have use below code
text.clear()
but error occur
How to clear array ?

Rajeesh MenothPosted Sep 27, 2016, 5:50 AM
praveen kumarPosted Oct 25, 2016, 5:39 AM
RajaPosted Sep 27, 2016, 6:13 AM
Rajeesh Menoth
Midhun T P
Krishna Rajput Singh
Midhun TpPosted Sep 27, 2016, 6:06 AM
Midhun TpPosted Sep 27, 2016, 5:31 AM
RajaPosted Sep 27, 2016, 5:05 AM
{
int mn = 0;
int count = 0;
int y = 0;
int x = 0;
int rowcountvalue = 0;
int t = 0;
int c = 1;
int rj = 0;
string[] text;
string s01 = string.Empty;
string name1 = string.Empty;
for (int i = 0; i < ds.Tables[s].Columns.Count; i++)
{
if (ds.Tables[0].Rows[0][i].ToString().ToUpper().Trim().Contains("NUMBER :"))//SPIR Number taken
{
s01 = ds.Tables[s].Rows[0][i].ToString().Trim();
text = s01.Split(':');
i = ds.Tables[0].Columns.Count;
}
}
name1 = text[1].ToString().ToUpper().Trim();
Midhun TpPosted Sep 27, 2016, 5:01 AM
RajaPosted Sep 27, 2016, 4:56 AM
Midhun TpPosted Sep 27, 2016, 4:47 AM
RajaPosted Sep 27, 2016, 4:38 AM
Midhun T P
{
s01 = ds.Tables[s].Rows[0][i].ToString().Trim();
text = s01.Split(':');
i = ds.Tables[0].Columns.Count;
}
Midhun TpPosted Sep 27, 2016, 4:32 AM
RajaPosted Sep 27, 2016, 4:28 AM
Midhun T P
Krishna Rajput SinghPosted Sep 27, 2016, 4:14 AM
Midhun TpPosted Sep 27, 2016, 2:53 AM