Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by SigmaX2

  1. SigmaX2

    Using a library...

    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 =...
  2. SigmaX2

    Reading from a DataSet

    Mmkay... so how do I do that and preserve my data? I'm not sure I really understand what you mean. (Forgive my ignorance). SigmaX
  3. SigmaX2

    Reading from a DataSet

    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
  4. SigmaX2

    Reading from a DataSet

    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
  5. SigmaX2

    Reading from a DataSet

    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.
  6. SigmaX2

    Using a library...

    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...
  7. SigmaX2

    Reading from a DataSet

    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...
  8. SigmaX2

    Reading from a DataSet

    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()...
  9. SigmaX2

    Reading from a DataSet

    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...

Part and Inventory Search

Back
Top