Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataReader has no constructors
Message
From
26/04/2006 22:52:00
 
 
To
All
General information
Forum:
ASP.NET
Category:
Databases
Title:
DataReader has no constructors
Miscellaneous
Thread ID:
01116944
Message ID:
01116944
Views:
181
In the following code:
            Select Case tnConnType
                Case 1
                    oConnection = New OleDbConnection(tcConnection)
                    oDataAdapter = New OleDbDataAdapter
                    oCommand = New OleDbCommand
                    oDataParameter = New OleDbParameter
                    oDataReader = New OleDbDataReader
                    While loEnumerator.MoveNext
                        loParameter = loEnumerator.Current
                        oParameters2.Add(New OleDbParameter(loParameter(1, 1).ToString, loParameter(1, 2)))
                    End While
The line oDataReader cannot be processed as the interface reports:

Type 'System.Data.OleDb.OleDbDataReader' has not constructors.

Why is this working for the first four lines but not on the fifth?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform