Well I must still be doing something wrong. My DLL has a namespace (CDurry) and a couple classes. In my exe I have CDurry.dll referenced properly, and a "using CDurry;" at the top of the file.
Under Main(); I have:
CDurry.coredurry core = new CDurry.coredurry();
CDurry.conecdurry conec =...
No, I guess i didn't know that. Clue me in with a little explanation, because from what I can tell that's my problem.
I can get the data into a Console.Write now (Dunno why I couldn't before), but when I try to put it into my global array it goes haywire.
Thanx,
SigmaX
That's what I figured at first too. But it executes the block successfully once, and throws the exception the second time it comes to the row[keytext] line.
What did you mean earlier when you said use oRow instead of row? Is it of any significance?
Thanx,
SigmaX
Okay, I've made some more progress. I have the data entering into the array now. But now the foreach() statement is executing once through, then terminating in the same error I was getting above (I dunno, maybe that was the problem in the first place).
Any clues? I fear I'm totally lost now.
Hey;
I'm fairly new to C#, and am trying to make a program that's split up into a .exe and a .dll file. I thought I had it all figured out, and it compiles perfectly with MCS (An open-source C# complier that I've been using). It runs perfectly with Mono, but when I try to run it on .NET, I...
MMkay. I'm making progress, but I'm still having troubles. When I do:
foreach ( DataTable table in loaded_chart.Tables )
{
int i = 0;
foreach ( DataRow row in table.Rows )
{
lms_table[i, 0] = (float) row[keytext];
}
}
('keytext' being a string with the desired column name...
Thanx for the reply.
ExecuteReader(); is exactly the method I want to use, and your link is worth bookmarking... but I still can't find anything on how to use it with a dataset. My data is loaded directly from a text file... and there is no SqlCommand object on which to use ExecuteReader()...
Hey;
I'm pretty new to C#, and have succeeded in loading a deliminated text file with a code snippet I found online. It loads the data into a DataSet.
All I've been able to learn from google on getting data from DataSets focuses on putting that data into a DataGrid. I don't want a datagrid...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.