Gustavo

Gustavo

  • NA
  • 1.3k
  • 454.4k

How do I: Part 2: Pass a DataTable from a Class to the Main.

Mar 20 2010 2:30 PM


Hello:
 
This question is specific to theLizard:
 
Here is my ClassDB. In the LoadListBox routine, I had to leave a few lines in. If I took them out, it stopped working. It took me a long time to get it to work because of a bug I created.
 
 
The lines that you wanted me to take out. I moved them into the Connection() and now I can remove them. Its cool, I am learning slowly but surely.
 
//DBDataAdapter = SetupDataAdapter();
//DBDataAdapter.SelectCommand = DBCommand;
//DBDataAdapter.SelectCommand.Connection = DBConnection; 
  
 

Attachment: ClassDB.zip

Answers (13)