VB.NET

Moderators: seancampbell
Number of threads: 4020
Number of posts: 10026

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Recordset, Connection Posted by JunM on 25 Mar 2005 at 12:48 AM
What is the new declaration in declaring a recordset in vb.net
before we used this code in vb6

eg.
Dim rs as Recordset

also in declaring a connection like this

eg.
public function GetConnection as Connection
end function

pls. help me.
tnx.

Report
Re: Recordset, Connection Posted by Chris__B on 4 Apr 2005 at 10:52 AM
If you want to use the recordset and connection object, you would have to add a reference to ADODB (Right-click over references in solution explorer and add adodb).

Then, the declaration would be
Dim rs as ADODB.Recordset
Dim cn as ADODB.Connection


If you're new to .NET then you might want to do some research into the System.Data namespace to see how .NET handles data access. It's a lot different than VB6.

Cheers,
Chris

: What is the new declaration in declaring a recordset in vb.net
: before we used this code in vb6
:
: eg.
: Dim rs as Recordset
:
: also in declaring a connection like this
:
: eg.
: public function GetConnection as Connection
: end function
:
: pls. help me.
: tnx.
:
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.