Click here to Skip to main content
15,890,825 members
Home / Discussions / C#
   

C#

 
AnswerRe: HowTo make a dll, which can be called by VBA: I got it! Pin
Ariadne27-Oct-06 4:36
Ariadne27-Oct-06 4:36 
AnswerRe: HowTo make a dll, which can be called by VBA Pin
SSLaks26-Oct-06 1:12
SSLaks26-Oct-06 1:12 
QuestionPassing vb.net class object to c# class method [modified] Pin
pdeep25-Oct-06 18:02
pdeep25-Oct-06 18:02 
AnswerRe: Passing vb.net class object to c# class method Pin
Robert Rohde25-Oct-06 19:21
Robert Rohde25-Oct-06 19:21 
QuestionRe: Passing vb.net class object to c# class method Pin
pdeep25-Oct-06 19:27
pdeep25-Oct-06 19:27 
AnswerRe: Passing vb.net class object to c# class method Pin
Colin Angus Mackay26-Oct-06 0:42
Colin Angus Mackay26-Oct-06 0:42 
GeneralRe: Passing vb.net class object to c# class method Pin
Robert Rohde26-Oct-06 6:13
Robert Rohde26-Oct-06 6:13 
QuestionLoading a dataset into an array. Pin
teejayem25-Oct-06 17:35
teejayem25-Oct-06 17:35 
I have a dataset that loads an xml file. What i'm wanting to do is load each row into an array. each row has 9 elements. When i try to loop through the item array for that row i get a null reference. I'm not sure of an easier way of doing it. Could someone help me out please?

DataSet ds = new DataSet();
ds.ReadXml(filePath);

foreach (DataRow r in ds.Tables[0].Rows)
{
    for (int d = 0; d <= 8; d++)
    {
        xmldata[d] = r.ItemArray[d].ToString(); //Null Reference..
    }
}


When i ran through the debugger i did verifiy that r.ItemArray[d] did have a string in there.

Don't be overcome by evil, but overcome evil with good

AnswerRe: Loading a dataset into an array. Pin
Robert Rohde25-Oct-06 19:24
Robert Rohde25-Oct-06 19:24 
AnswerRe: Loading a dataset into an array. Pin
ednrgc26-Oct-06 4:07
ednrgc26-Oct-06 4:07 
GeneralRe: Loading a dataset into an array. Pin
teejayem26-Oct-06 5:28
teejayem26-Oct-06 5:28 
GeneralRe: Loading a dataset into an array. Pin
ednrgc26-Oct-06 5:34
ednrgc26-Oct-06 5:34 
QuestionAbout taskbar Pin
fachozo25-Oct-06 16:17
fachozo25-Oct-06 16:17 
AnswerRe: About taskbar [modified] Pin
quiteSmart25-Oct-06 19:37
quiteSmart25-Oct-06 19:37 
AnswerRe: About taskbar Pin
Nader Elshehabi25-Oct-06 21:19
Nader Elshehabi25-Oct-06 21:19 
Questionread a cd rom as a whole Pin
Iv0125-Oct-06 13:51
Iv0125-Oct-06 13:51 
AnswerRe: read a cd rom as a whole Pin
led mike25-Oct-06 13:59
led mike25-Oct-06 13:59 
AnswerRe: read a cd rom as a whole Pin
Nader Elshehabi25-Oct-06 21:14
Nader Elshehabi25-Oct-06 21:14 
QuestionNewbie: Question about ListViews? Pin
Phillip Hodges25-Oct-06 12:45
Phillip Hodges25-Oct-06 12:45 
AnswerRe: Newbie: Question about ListViews? Pin
led mike25-Oct-06 12:59
led mike25-Oct-06 12:59 
GeneralRe: Newbie: Question about ListViews? Pin
Phillip Hodges25-Oct-06 13:04
Phillip Hodges25-Oct-06 13:04 
GeneralRe: Newbie: Question about ListViews? Pin
led mike30-Oct-06 7:57
led mike30-Oct-06 7:57 
QuestionHow can I get the maximum length of a string that will fit into a textbox Pin
Dan Neely25-Oct-06 10:25
Dan Neely25-Oct-06 10:25 
AnswerRe: How can I get the maximum length of a string that will fit into a textbox Pin
led mike25-Oct-06 11:24
led mike25-Oct-06 11:24 
Questionhow do I binary search a struct array? Pin
kshet2625-Oct-06 10:23
kshet2625-Oct-06 10:23 

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.