Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
14
Reply
How to clear array in c#?
Raja
7 years ago
554
Reply
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;
}
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 ?
Post
Reset
Cancel
Answers (
14
)
Next Recommended Forum
Dyamamic cally change data form of gridview date column
While Install window service Show Below Error