|
-
December 18th, 2006, 06:19 AM
#1
[RESOLVED] No Constructor Defined??
Hi All,
I'm using Winforms.
I have the following code in a form:
clsSQL Sql = new clsSQL;
System.Data.OleDb.OleDbDataReader TreeData = new System.Data.OleDb.OleDbDataReader(); //Offending Line Here
TreeData = Sql.ReturnData(Sql.ReturnAllStructures);
In clsSQL I have:
Public OleDbDataReader ReturnData(string SQL)
{
.......
......
System.Data.OleDb.OleDbDataReader myReader = myCommand.ExecuteReader();
ReturnData = myReader;
}
Why is it expecting a constructor when I'm just declaring a new instance?
If you find my answers helpful, dont forget to rate me 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|