borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (DataBinding)Next Topic (swipe card) New Topic New Poll Post Reply
AndreaVB Forum : VB.Net : Copying / Cloning a dataset Solved Topic
Poster Message
Jim21
Level: Trainee

Registered: 17-09-2006
Posts: 2

icon Copying / Cloning a dataset

Hi,

I have a query function which is held in a module and can be utilised by many other procedures, the data returned is held in a single dataset which is overwritten by subsequent queries.

In some instances I need to keep hold of the information for further manipulation. The datset object has several copy / clone type functions but I cant find any information on how to use these.

Any advice would be much appreciated!

17-09-2006 at 08:27 PM
View Profile Send Email to User Show All Posts | Quote Reply
Jim21
Level: Trainee

Registered: 17-09-2006
Posts: 2
icon Re: Copying / Cloning a dataset

Dear All,

I have figured out the solution, and its easier than I ever imagined. For everyones reference the solution is as follows:

(This assumes the first dataset, ds, is already populated, Model is simply the second datatset)

Basreference.Model = ds.Copy


18-09-2006 at 06:58 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB.Net : Copying / Cloning a dataset Solved Topic
Previous Topic (DataBinding)Next Topic (swipe card) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder