|
-
Dec 6th, 2002, 10:45 AM
#1
Thread Starter
Hyperactive Member
Datasets? - fixed it!
OK I'm very new to .NET...
I'm trying to get my head around ADO.NET but I can't declare a Dataset, which is kind of hindering my progress.
When I type Dim dsTest As Dataset()
or Dim dsTest As New Dataset()
the word 'Dataset' has the squiggly blue line and the tooltip says... 'Type "Dataset" is not defined'
Dataset does not appear in System.Data namespace either 
I'm sure I'm missing something really obvious, could anyone help me?
Last edited by SjR; Dec 9th, 2002 at 07:44 AM.
Another satisfied customer 
-
Dec 6th, 2002, 10:51 AM
#2
Registered User
I wonder what's in your System.Data namespace as my contains a Dataset object.....
-
Dec 6th, 2002, 10:55 AM
#3
Registered User
Do you have the system.dll added as reference?
-
Dec 6th, 2002, 10:55 AM
#4
Is System.Data referenced?
-
Dec 6th, 2002, 11:00 AM
#5
Thread Starter
Hyperactive Member
Another satisfied customer 
-
Dec 6th, 2002, 11:06 AM
#6
What version of VS .NET are you using. I get DataSet on my intellisense..
-
Dec 6th, 2002, 11:08 AM
#7
Thread Starter
Hyperactive Member
Microsoft Development Environment 2002 Version 7.0.9466
Microsoft .NET Framework 1.0 Version 1.0.3705
I think its broken .........
Another satisfied customer 
-
Dec 6th, 2002, 11:16 AM
#8
I dont get it.
-
Dec 6th, 2002, 11:22 AM
#9
Thread Starter
Hyperactive Member
I'm going to try downloading sp2 for the .net framework - I don't think I've already done that!?
I also noticed .net framework version 1.1 beta... should I be using that I wonder... because its the framework downloads that contain the system dll files isn't it? Oh I don't know - I'm just gonna download some stuff - can't get anyworse
Another satisfied customer 
-
Dec 6th, 2002, 11:25 AM
#10
mmm no dont get Framework 1.1 yet. I dont know if it works with your current Visual Studio. Maybe ..maybe not!
And I dont think the sp has anthing to do with it. i havent gotten sp2 or 1 on this system yet and I still get the DataSet
-
Dec 7th, 2002, 11:03 AM
#11
Lively Member
The reference you need to add is to System.Data
Open your reference thingy in your solution explorer to make sure it's there. If only System is there or System.anythingelse, then you need to add System.Data manually.
After that you'll need to add the line
Imports System.Data
on top of your code so that you can declare
Dim blah as new Dataset
otherwise you'll have to do
Dim blah as new System.Data.Dataset everytime
-
Dec 9th, 2002, 04:16 AM
#12
Thread Starter
Hyperactive Member
I have System.Data in my references... and despite whether I type..
"Imports System.Data" then
"Dim dsTest as Dataset"
or
"Dim dsTest as System.Data.Dataset"
Type 'Dataset' is not defined
Another satisfied customer 
-
Dec 9th, 2002, 06:15 AM
#13
Frenzied Member
OK, straw clutching time...
...what version of System.Data.dll do you have (though I can't believe any version didn't have datasets considering how key they are to ADO.NET..!)
My version (from WinCV) is as follows:
// from module 'c:\winnt\assembly\gac\system.data\1.0.3300.0__b77a5c561934e089\system.data.dll'
-
Dec 9th, 2002, 07:13 AM
#14
Thread Starter
Hyperactive Member
// from module 'c:\winnt\assembly\gac\system.data\1.0.3300.0__b77a5c561934e089\system.data.dll'
looks the same 
hmmmmmm
I've just completely re-installed .NET... still can't see the bloomin' datasets
Another satisfied customer 
-
Dec 9th, 2002, 07:43 AM
#15
Thread Starter
Hyperactive Member
-
Dec 9th, 2002, 07:45 AM
#16
-
Dec 9th, 2002, 08:43 AM
#17
Thread Starter
Hyperactive Member
It wasn't appearing in any (clean or dirty ) apps.
Now it's appearing in both, apps I've been working on, and new apps.
So, don't really know the answer - although it wouldn't surprise me one bit if its this tin-pot computer I'm using thats at fault!!
Datasets rubbish then? They looked like a good idea, which is why I was trying to learn how to do the damn things - bit complicated to start with, but once they're in place, database updates should be a piece of errrrrmm cake - or so MS would have you believe!
Another satisfied customer 
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
|