D
doofy
I'm trying to jump start with VB.Net/Ado.Net to get something done at
work.
I'm using the book "Programming Microsoft ADO.Net 2.0". One problem
with this book is that his sample code does not spell out the imports.
Usually somewhere in the paragraphs or pages before, it says "This
assumes you're importing blah.blah.blah."
Well, I'm not finding the reference.
I've used the Data Source Configuration wizard to create BisDataSet.
It's blowing up on line 9, on "BisDataSet" saying "Reference to a
non-shared member requires an object reference."
Trying to look that error message up on the Microsoft gives me a generic
definition and little to go on.
Here's my code:
Imports Microsoft.Office.Interop.Excel
Imports Microsoft.SqlServer.Server
Imports System.Data.SqlClient
Imports System.Data
1 Module Module1
2
3 Sub Main()
4
5 End Sub
6 Sub write_Scorecard_RRTP()
7
8 Dim RRTPRowset As BisDataSet.RRTP_ScorecardRow()
9 RRTPRowset = BisDataSet.RRTP_Scorecard(0)
10
11 End Sub
12 End Module
work.
I'm using the book "Programming Microsoft ADO.Net 2.0". One problem
with this book is that his sample code does not spell out the imports.
Usually somewhere in the paragraphs or pages before, it says "This
assumes you're importing blah.blah.blah."
Well, I'm not finding the reference.
I've used the Data Source Configuration wizard to create BisDataSet.
It's blowing up on line 9, on "BisDataSet" saying "Reference to a
non-shared member requires an object reference."
Trying to look that error message up on the Microsoft gives me a generic
definition and little to go on.
Here's my code:
Imports Microsoft.Office.Interop.Excel
Imports Microsoft.SqlServer.Server
Imports System.Data.SqlClient
Imports System.Data
1 Module Module1
2
3 Sub Main()
4
5 End Sub
6 Sub write_Scorecard_RRTP()
7
8 Dim RRTPRowset As BisDataSet.RRTP_ScorecardRow()
9 RRTPRowset = BisDataSet.RRTP_Scorecard(0)
10
11 End Sub
12 End Module