Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb_dotnet thread: Strange ADO. NET Error


Message #1 by Terrence Joubert <Terrence@v...> on Wed, 19 Dec 2001 19:11:36 +0400
This is a multi-part message in MIME format.

------=_NextPart_000_0069_01C18B67.0C31D7D0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I notice that the objDS is declared improperly as an array in the text I 
have on p. 581.  That accounts for your last 2 of 3 errors.  Not certain 
what the problem is with the first line, please check that you did not 
accidentally append parentheses to the declaration for objDA.  Also, the 
imports statement is implied and not explicit as is required which could 
also cause a problem, but it should have appered in the declaration line 
earlier.

  ----- Original Message -----
  From: Terrence Joubert
  To: pro_VB_dotnet
  Sent: Wednesday, December 19, 2001 7:11 AM
  Subject: [pro_vb_dotnet] Strange ADO. NET Error


  Hi Everyone,

  

  I am using Visual Studio .NET RC3.

  I am testing the piece of code on page 581 of the book Professional VB 
.NET. When I try to buid the application that contains this code chunk, 
the compiler gives me the following errors:

  

        Line of code
       Error
      
        objDA =3D New SqlClient.SqlDataAdapter(strSQL, strConn)
       Value of type 'System.Data.SqlClient.SqlDataAdapter' cannot be 
converted to '1-dimensional array of 
System.Data.SqlClient.SqlDataAdapter'.

        
      
        objDA.Fill(objDS)

        
       'Fill' is not a member of 'System.Array'.
      
        With objDS.Tables(0)

        
       'Tables' is not a member of 'System.Array'.
      

  

  Would anyone, perhaps the authors, have a clue of what these errors 
mean and how I can go around it?

  

  Thanks

  Terrence

  

$subst('Email.Unsub').



  Return to Index