Problem encountered with datatable.

mike55

Contributor
Joined
Mar 26, 2004
Messages
727
Location
Ireland
I have declared the following global variable.
Code:
dim dtMembers as datatable = new Datatable("Members")

However the .net 2005 environment throws the following error:
"Type DataTable is note defined."

I have imported the following at the start:
Code:
imports system
imports system.data

If I however change the global code to the following:
Code:
dim dtMembers as Datatable = new System.Data.DataTable("Members")
the environment does not throw an error.

Any suggestions on what is going wrong?

Mike55.
 
Back
Top