Click here to Skip to main content
15,893,266 members
Home / Discussions / C#
   

C#

 
GeneralRe: problem while adding reference Pin
Wayne Gaylard29-Aug-12 21:22
professionalWayne Gaylard29-Aug-12 21:22 
GeneralRe: problem while adding reference Pin
Ennis Ray Lynch, Jr.30-Aug-12 5:09
Ennis Ray Lynch, Jr.30-Aug-12 5:09 
GeneralRe: problem while adding reference Pin
Wayne Gaylard30-Aug-12 5:30
professionalWayne Gaylard30-Aug-12 5:30 
QuestionProblem Using ExecuteScalar Pin
ASPnoob29-Aug-12 18:56
ASPnoob29-Aug-12 18:56 
AnswerRe: Problem Using ExecuteScalar Pin
Bernhard Hiller29-Aug-12 20:45
Bernhard Hiller29-Aug-12 20:45 
AnswerRe: Problem Using ExecuteScalar Pin
Rohit Kumar Gora30-Aug-12 4:08
Rohit Kumar Gora30-Aug-12 4:08 
QuestionUsing an Array inside a Class Pin
Jacob Rotary29-Aug-12 10:49
Jacob Rotary29-Aug-12 10:49 
AnswerRe: Using an Array inside a Class Pin
Matt T Heffron29-Aug-12 11:11
professionalMatt T Heffron29-Aug-12 11:11 
The issue is that your declarations public string[] data;, etc. do not create/allocate an array, they only specify that data will be an array.
You still need to create the arrays with new, just like you do with DataTable.
So it looks like, right after your t2.Rows is "full":
C#
int rowCount = t2.Rows.Count;
this.baseID = new string[rowCount];
this.data = new string[rowCount];
this.date = new string[rowCount];
this.release = new string[rowCount];

etc.
AnswerRe: Using an Array inside a Class Pin
Wes Aday29-Aug-12 11:14
professionalWes Aday29-Aug-12 11:14 
JokeRe: Using an Array inside a Class Pin
PIEBALDconsult29-Aug-12 11:30
mvePIEBALDconsult29-Aug-12 11:30 
GeneralRe: Using an Array inside a Class Pin
Wes Aday29-Aug-12 11:35
professionalWes Aday29-Aug-12 11:35 
AnswerRe: Using an Array inside a Class Pin
PIEBALDconsult29-Aug-12 11:33
mvePIEBALDconsult29-Aug-12 11:33 
AnswerRe: Using an Array inside a Class Pin
Kenneth Haugland29-Aug-12 11:51
mvaKenneth Haugland29-Aug-12 11:51 
AnswerRe: Using an Array inside a Class Pin
Bernhard Hiller29-Aug-12 20:49
Bernhard Hiller29-Aug-12 20:49 
AnswerRe: Using an Array inside a Class Pin
Pete O'Hanlon29-Aug-12 22:47
mvePete O'Hanlon29-Aug-12 22:47 
AnswerRe: Using an Array inside a Class Pin
harold aptroot30-Aug-12 2:39
harold aptroot30-Aug-12 2:39 
QuestionHow to get the properties of more than one display monitor attached to my computer Pin
Nathaniel Lim29-Aug-12 10:09
Nathaniel Lim29-Aug-12 10:09 
AnswerRe: How to get the properties of more than one display monitor attached to my computer Pin
Dave Kreskowiak29-Aug-12 13:04
mveDave Kreskowiak29-Aug-12 13:04 
QuestionRecruitment Pin
boys-esan29-Aug-12 10:09
boys-esan29-Aug-12 10:09 
QuestionGet Error when connect to DB2 on server Pin
kathytran29-Aug-12 7:07
kathytran29-Aug-12 7:07 
AnswerRe: Get Error when connect to DB2 on server Pin
Dave Kreskowiak29-Aug-12 12:58
mveDave Kreskowiak29-Aug-12 12:58 
QuestiontextBoxes Calculation issue Pin
haroon198029-Aug-12 6:30
haroon198029-Aug-12 6:30 
AnswerRe: textBoxes Calculation issue Pin
Wes Aday29-Aug-12 6:46
professionalWes Aday29-Aug-12 6:46 
GeneralRe: textBoxes Calculation issue Pin
haroon198029-Aug-12 6:51
haroon198029-Aug-12 6:51 
GeneralRe: textBoxes Calculation issue Pin
Wes Aday29-Aug-12 6:54
professionalWes Aday29-Aug-12 6:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.