DataTable is not defined

Ok I'm first to admit that I'm no legend when it comes to .net programming. I'm slow to make the transition from VB6 - so I jump straight into a beta- maybe not the smartest thing to do.

Anyway, I've got a smart device project - and I want to reference a datatable.

I've added the reference to system.data but when I declare

'Dim NewTable As New DataTable'  for example, it tells me that this is not defined

What am I doing wrong. I have another project with the same references and it knows about this datatable reference just dandy

I'm using Beta 2.

Apologies if this is a stupid question or it's in the wrong place.

thanks
Bruce



Answer this question

DataTable is not defined

  • Finkster

    Hi,

    Have you tried defining it as:

    Dim dt As New System.Data.DataTable()

    see if this works. Maybe you have defined another class named datatable in the current namespace which conflicts with DataTable...

     

     

     

    cheers,

    Paul June A. Domag



  • Amir19

    It already is there - that's what's so baffling.

    my references are
    system
    system.data
    system.data.sqlserverce
    system.drawing
    system.windows.forms
    system.windows.forms.datagrid
    system.xml

    thanks.

  • mbp

    Hi,

    Try adding System.Data into your reference...

     

     

     

    cheers,

    Paul June A. Domag



  • DataTable is not defined