put data in array
ASP.NET
4
Posts
4
Posters
0
Views
1
Watching
-
i wrote this cod and that is not right can you correct it?????? public static Int32[] tcode; for(int i=0;i
Hi there,
ptvce wrote:
tcode[i] = Convert.ToInt32(ds.Tables[0].Rows[i][0]);
what is your
tcode[i]
? And you have to make sure that ds.Tables[0] is not null << >> -
i wrote this cod and that is not right can you correct it?????? public static Int32[] tcode; for(int i=0;i
-
i wrote this cod and that is not right can you correct it?????? public static Int32[] tcode; for(int i=0;i
Create array as per your row count
public static Int32[] tcode = new Int32[ds.tables[0].rows.count] ; for(int i=0;i<ds.tables[0].rows.count;i++) { tcode[i] = Convert.ToInt32(ds.Tables[0].Rows[i][0]); }